Add ordering by 'pk' field to the AccessControlList model to silence the UnorderedObjectListWarning warning.

Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
Michael Price
2018-03-05 01:59:37 -04:00
committed by Roberto Rosario
parent d0c6c7e6de
commit 69adce5c02

View File

@@ -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')