diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-12-18 17:46:12 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-12-18 17:46:12 +0100 |
commit | 99004116cf0b45884bb3f52c62c1ae8bb5b36702 (patch) | |
tree | a04efd3e00a5a5928ce6495d24ad3bff076d21d5 /archaeological_operations/models.py | |
parent | f134b479869283a6bfa899334c6adb6f8bee6882 (diff) | |
download | Ishtar-99004116cf0b45884bb3f52c62c1ae8bb5b36702.tar.bz2 Ishtar-99004116cf0b45884bb3f52c62c1ae8bb5b36702.zip |
RecordRelations form for operations
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index a1cd43b58..58281250f 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -257,7 +257,7 @@ class Operation(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem, @property def short_label(self): if settings.COUNTRY == 'fr': - return self.code_patriarche + return self.reference return unicode(self) @property @@ -457,6 +457,7 @@ class RelationType(GeneralRelationType): class RecordRelations(GeneralRecordRelations, models.Model): + MAIN_ATTR = 'left_record' left_record = models.ForeignKey(Operation, related_name='right_relations') right_record = models.ForeignKey(Operation, |