mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Explicit default ordering for rule / account views
This commit is contained in:
parent
4f876db5d1
commit
ce9f604d81
@ -919,7 +919,7 @@ class AcknowledgeTasksView(GenericAPIView):
|
|||||||
class MailAccountViewSet(ModelViewSet):
|
class MailAccountViewSet(ModelViewSet):
|
||||||
model = MailAccount
|
model = MailAccount
|
||||||
|
|
||||||
queryset = MailAccount.objects.all()
|
queryset = MailAccount.objects.all().order_by("pk")
|
||||||
serializer_class = MailAccountSerializer
|
serializer_class = MailAccountSerializer
|
||||||
pagination_class = StandardPagination
|
pagination_class = StandardPagination
|
||||||
permission_classes = (IsAuthenticated,)
|
permission_classes = (IsAuthenticated,)
|
||||||
@ -936,7 +936,7 @@ class MailAccountViewSet(ModelViewSet):
|
|||||||
class MailRuleViewSet(ModelViewSet):
|
class MailRuleViewSet(ModelViewSet):
|
||||||
model = MailRule
|
model = MailRule
|
||||||
|
|
||||||
queryset = MailRule.objects.all()
|
queryset = MailRule.objects.all().order_by("pk")
|
||||||
serializer_class = MailRuleSerializer
|
serializer_class = MailRuleSerializer
|
||||||
pagination_class = StandardPagination
|
pagination_class = StandardPagination
|
||||||
permission_classes = (IsAuthenticated,)
|
permission_classes = (IsAuthenticated,)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user