From c1c55c45a69fb4f45e11859950886fec6b2d26a0 Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Mon, 6 Apr 2026 14:34:54 +0330 Subject: [PATCH] bug fix --- apps/gooyal_oauth2/scopes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gooyal_oauth2/scopes.py b/apps/gooyal_oauth2/scopes.py index 64d979f..3cce1d2 100644 --- a/apps/gooyal_oauth2/scopes.py +++ b/apps/gooyal_oauth2/scopes.py @@ -18,7 +18,7 @@ class Scopes(BaseScopes): def get_queryset(self, application=None): queryset = Scope.objects.all() if application: - queryset = queryset.filter(name__in=application.allowed_scopes).order_by('resource__uuid') + queryset = queryset.filter(name__in=application.allowed_scopes) return queryset