diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-09-12 00:14:06 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-09-12 00:14:06 +0200 |
commit | 2ed07147023e7a0a7b30c143261d244de3b84f77 (patch) | |
tree | 184812c6c12ee116ba3876d0aeeee3fdf1fe9016 /archaeological_finds/models.py | |
parent | a405af29281255f4318f48d4c2adc766615c2f14 (diff) | |
download | Ishtar-2ed07147023e7a0a7b30c143261d244de3b84f77.tar.bz2 Ishtar-2ed07147023e7a0a7b30c143261d244de3b84f77.zip |
Manage missing order for some GeneralTypes (refs #612)
Diffstat (limited to 'archaeological_finds/models.py')
-rw-r--r-- | archaeological_finds/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py index 84a041a41..c832fdf70 100644 --- a/archaeological_finds/models.py +++ b/archaeological_finds/models.py @@ -40,6 +40,7 @@ class MaterialType(GeneralType): class Meta: verbose_name = _(u"Material type") verbose_name_plural = _(u"Material types") + ordering = ('label',) class BaseFind(BaseHistorizedItem, OwnPerms): label = models.CharField(_(u"ID"), max_length=60) @@ -293,6 +294,7 @@ class TreatmentType(GeneralType): class Meta: verbose_name = _(u"Treatment type") verbose_name_plural = _(u"Treatment types") + ordering = ('label',) class Treatment(BaseHistorizedItem, OwnPerms): container = models.ForeignKey(Container, verbose_name=_(u"Container"), |