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(