Debugging blog domain selector.

master
Nick Sergeant 2013-02-12 01:22:50 -05:00
parent e3ff982eed
commit 2e780d00b6
1 changed files with 1 additions and 1 deletions

View File

@ -29,6 +29,6 @@ class BlogMiddleware:
pro_users = User.objects.filter(userprofile__is_pro=True)
for pro_user in pro_users:
if pro_user.profile.blog_domain != '':
if pro_user.profile.blog_domain:
if host in pro_user.profile.blog_domain.split(' '):
request.blog_user = pro_user