mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 19:41:11 +00:00
Sort domains in admin view
This commit is contained in:
parent
e218b73272
commit
b9fde85b49
1 changed files with 3 additions and 3 deletions
|
@ -20,9 +20,9 @@ class LinkDomain(View):
|
|||
def get(self, request, status="pending"):
|
||||
"""view pending domains"""
|
||||
data = {
|
||||
"domains": models.LinkDomain.objects.filter(status=status).prefetch_related(
|
||||
"links"
|
||||
),
|
||||
"domains": models.LinkDomain.objects.filter(status=status)
|
||||
.prefetch_related("links")
|
||||
.order_by("-created_date"),
|
||||
"counts": {
|
||||
"pending": models.LinkDomain.objects.filter(status="pending").count(),
|
||||
"approved": models.LinkDomain.objects.filter(status="approved").count(),
|
||||
|
|
Loading…
Reference in a new issue