Explicit secondary ordering of categories

This commit is contained in:
Raphael Michel
2015-02-11 18:41:36 +01:00
parent 270a359e2e
commit a026d838f7
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -429,7 +429,7 @@ class ItemCategory(Versionable):
class Meta:
verbose_name = _("Item category")
verbose_name_plural = _("Item categories")
ordering = ('position',)
ordering = ('position', 'id')
def __str__(self):
return self.name