diff options
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-rw-r--r-- | archaeological_finds/models_treatments.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index abd5de98b..3d1759b54 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -164,6 +164,7 @@ class Treatment( "scientific_monitoring_manager": SearchAltName( pgettext_lazy("key for text search", "scientific-manager"), "scientific_monitoring_manager__cached_label__iexact", + related_name="scientific_monitoring_manager" ), } ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) @@ -1067,10 +1068,12 @@ class TreatmentFile( "applicant": SearchAltName( pgettext_lazy("key for text search", "applicant"), "applicant__cached_label__iexact", + related_name="applicant" ), "applicant_organisation": SearchAltName( pgettext_lazy("key for text search", "applicant-organisation"), "applicant_organisation__cached_label__iexact", + related_name="applicant_organisation" ), "exhibition_start_before": SearchAltName( pgettext_lazy("key for text search", "exhibition-start-before"), |