From 55a4798ac3a54cc6b856aac80efac84bd7eadc1e Mon Sep 17 00:00:00 2001 From: Michael Price Date: Fri, 9 Mar 2018 04:52:40 -0400 Subject: [PATCH] Silence the UnorderedObjectListWarning warning for the checkouts app. Signed-off-by: Michael Price --- mayan/apps/checkouts/models.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mayan/apps/checkouts/models.py b/mayan/apps/checkouts/models.py index 71b2f379d4..4d9eba9e67 100644 --- a/mayan/apps/checkouts/models.py +++ b/mayan/apps/checkouts/models.py @@ -50,6 +50,11 @@ class DocumentCheckout(models.Model): objects = DocumentCheckoutManager() + class Meta: + ordering = ('pk',) + verbose_name = _('Document checkout') + verbose_name_plural = _('Document checkouts') + def __str__(self): return force_text(self.document) @@ -88,10 +93,6 @@ class DocumentCheckout(models.Model): return result - class Meta: - verbose_name = _('Document checkout') - verbose_name_plural = _('Document checkouts') - class NewVersionBlock(models.Model): document = models.ForeignKey(