Commit 40c78817 by Waheed Ahmed Committed by Bill DeRusha

Added comments publisher/admin.py

parent e6b10d46
......@@ -115,4 +115,7 @@ class PublisherUserAdmin(UserAdmin):
add_form = PublisherUserCreationForm
def get_queryset(self, request):
"""
Return only those users which belongs to any group.
"""
return self.model.objects.filter(groups__in=Group.objects.all()).distinct()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment