diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-16 18:10:46 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-16 18:10:46 +0200 | 
| commit | 5b6714f7e9776b815c05a40fa16abc4ed2223b30 (patch) | |
| tree | 7b4a85964bac71dff3a0946564774639c0ad6550 /archaeological_operations/models.py | |
| parent | e278c19588150af3ce63bc5687548dc27087f978 (diff) | |
| download | Ishtar-5b6714f7e9776b815c05a40fa16abc4ed2223b30.tar.bz2 Ishtar-5b6714f7e9776b815c05a40fa16abc4ed2223b30.zip | |
Ordering operation types
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 02ec1a912..d7dc18b3c 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -38,6 +38,7 @@ class OperationType(GeneralType):      class Meta:          verbose_name = _(u"Operation type")          verbose_name_plural = _(u"Operation types") +        ordering = ['label']      @classmethod      def is_preventive(cls, ope_type_id, key=''): | 
