This commit is contained in:
Egor Matveev
2021-11-21 23:32:12 +03:00
parent 30fab7926e
commit 8bf25ef4f0
5 changed files with 6 additions and 9 deletions

View File

@@ -8,4 +8,6 @@ class RatingView(BaseView):
required_login = True
def get(self):
self.context["users"] = User.objects.all().order_by('-userinfo__rating')
self.context["users"] = User.objects.filter(userinfo__verified=True).order_by(
"-userinfo__rating", "date_joined"
)