summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index b0e72c4a1..3052844b4 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -911,7 +911,8 @@ class RecordRelationView(models.Model):
"""
TABLE_COLS = [
"relation_type",
- "right_record__label", "right_record__unit", "right_record__parcel",
+ "right_record__label", "right_record__unit",
+ "right_record__parcel",
"right_record__datings__period", "right_record__description"]
COL_LABELS = {
"relation_type": _("Relation type"),
@@ -924,7 +925,8 @@ class RecordRelationView(models.Model):
# search parameters
EXTRA_REQUEST_KEYS = {
- "left_record_id": "left_record_id"
+ "left_record_id": "left_record_id",
+ "right_record__unit": "right_record__unit__label"
}
left_record = models.ForeignKey(ContextRecord, related_name='+',
on_delete=models.DO_NOTHING)