diff --git a/mezzanine/core/admin.py b/mezzanine/core/admin.py index 931a7584c2..68c6a69a37 100644 --- a/mezzanine/core/admin.py +++ b/mezzanine/core/admin.py @@ -426,7 +426,7 @@ def save_model(self, request, obj, form, change): super(SitePermissionUserAdmin, self).save_model(request, obj, form, change) user = self.model.objects.get(id=obj.id) has_perms = len(user.get_all_permissions()) > 0 - has_sites = SitePermission.objects.filter(user=user).count() > 0 + has_sites = SitePermission.objects.filter(user=user).exists() if ( user.is_active and user.is_staff