mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01:00
Apply code suggestions from @stumpylog
This commit is contained in:
parent
35ca2195fe
commit
93fab8bb95
2 changed files with 2 additions and 18 deletions
|
|
@ -735,7 +735,7 @@ class MailAccountSerializer(serializers.ModelSerializer):
|
|||
|
||||
class AccountField(serializers.PrimaryKeyRelatedField):
|
||||
def get_queryset(self):
|
||||
return MailAccount.objects.all()
|
||||
return MailAccount.objects.all().order_by("-id")
|
||||
|
||||
|
||||
class MailRuleSerializer(serializers.ModelSerializer):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue