From 69adce5c02113ae9cf8afaf48d1da82376f8ddf7 Mon Sep 17 00:00:00 2001 From: Michael Price Date: Mon, 5 Mar 2018 01:59:37 -0400 Subject: [PATCH] Add ordering by 'pk' field to the AccessControlList model to silence the UnorderedObjectListWarning warning. Signed-off-by: Michael Price --- mayan/apps/acls/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mayan/apps/acls/models.py b/mayan/apps/acls/models.py index 4c972ef285..2f36366b47 100644 --- a/mayan/apps/acls/models.py +++ b/mayan/apps/acls/models.py @@ -50,6 +50,7 @@ class AccessControlList(models.Model): objects = AccessControlListManager() class Meta: + ordering = ('pk',) unique_together = ('content_type', 'object_id', 'role') verbose_name = _('Access entry') verbose_name_plural = _('Access entries')