summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index a5fcc1a91..8ffc2ff2f 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -4586,7 +4586,7 @@ def author_post_save(sender, **kwargs):
post_save.connect(author_post_save, sender=Author)
-class SourceType(HierarchicalType):
+class SourceType(OrderedHierarchicalType):
coins_type = models.CharField(
_("COInS export - type"), default="document", max_length=100
)
@@ -4603,7 +4603,7 @@ class SourceType(HierarchicalType):
class Meta:
verbose_name = _("Document type")
verbose_name_plural = _("Document types")
- ordering = ["label"]
+ ordering = ("parent__order", "parent__label", "order", "label",)
ADMIN_SECTION = _("Documents")