diff --git a/blogs/middleware.py b/blogs/middleware.py index a511f7c..cd90fd0 100644 --- a/blogs/middleware.py +++ b/blogs/middleware.py @@ -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