forked from mirrors/bookwyrm
Merge pull request #1796 from bookwyrm-social/about-admins
Makes query to get admins unique
This commit is contained in:
commit
3048311a5e
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ def about(request):
|
|||
"status_count": models.Status.objects.filter(
|
||||
user__local=True, deleted=False
|
||||
).count(),
|
||||
"admins": models.User.objects.filter(groups__name__in=["admin", "moderator"]),
|
||||
"admins": models.User.objects.filter(
|
||||
groups__name__in=["admin", "moderator"]
|
||||
).distinct(),
|
||||
"version": settings.VERSION,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue