forked from mirrors/bookwyrm
Makes query to get admins unique
This commit is contained in:
parent
ad9d7bcd65
commit
599c79917e
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