Silence the UnorderedObjectListWarning warning for the checkouts app.

Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
Michael Price
2018-03-09 04:52:40 -04:00
committed by Roberto Rosario
parent f85b30c967
commit 55a4798ac3

View File

@@ -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(