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:
committed by
Roberto Rosario
parent
d0c6c7e6de
commit
69adce5c02
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user