diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-17 19:27:59 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-17 19:27:59 +0200 |
| commit | 4be9edb096c6685245b4a997130e1016578c1ff7 (patch) | |
| tree | cbb21e7b1e42aec0e763e3322863055b0c468dcc /archaeological_context_records/models.py | |
| parent | 84f9336f71dd70a8bb040b17eab4c753669c4276 (diff) | |
| parent | 64bb69c03ce1688c72b3f7ebd0e1550cd941aa69 (diff) | |
| download | Ishtar-4be9edb096c6685245b4a997130e1016578c1ff7.tar.bz2 Ishtar-4be9edb096c6685245b4a997130e1016578c1ff7.zip | |
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'archaeological_context_records/models.py')
| -rw-r--r-- | archaeological_context_records/models.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 5dc943275..e1cb216a2 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -363,6 +363,25 @@ class RecordRelations(GeneralRecordRelations, models.Model): right_record = models.ForeignKey(ContextRecord, related_name='left_relations') relation_type = models.ForeignKey(RelationType) + TABLE_COLS = [ + "left_record__label", "left_record__unit", "left_record__parcel", + "left_record__datings__period", "left_record__description", + "relation_type", + "right_record__label", "right_record__unit", "right_record__parcel", + "right_record__datings__period", "right_record__description"] + TABLE_COLS_LBL = { + "left_record__label": _(u"ID (left)"), + "left_record__unit": _(u"Unit (left)"), + "left_record__parcel": _(u"Parcel (left)"), + "left_record__description": _(u"Description (left)"), + "left_record__datings__period": _(u"Periods (left)"), + "relation_type": _(u"Relation type"), + "right_record__label": _(u"Unit (right)"), + "right_record__unit": _(u"Parcel (right)"), + "right_record__parcel": _(u"Parcel (right)"), + "right_record__description": _(u"Description (right)"), + "right_record__datings__period": _(u"Periods (right)") + } class Meta: verbose_name = _(u"Record relation") |
