Allow Pro users to specify multiple domains to serve their blog. Specifically for www/non-www setups.

master
Nick Sergeant 2013-02-10 19:25:21 -05:00
parent 035ce1fb46
commit 71671f3058
1 changed files with 1 additions and 1 deletions

View File

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