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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index fe9f8a2bc..d71864302 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -384,8 +384,8 @@ class ContextRecord(BulkUpdatedItem, BaseHistorizedItem, ImageModel, OwnPerms,
join=settings.JOINT, where=where)
with connection.cursor() as c:
c.execute(sql, args)
- cls._meta.get_field_by_name(
- 'base_finds')[0].related_model.cached_label_bulk_update(**kwargs)
+ cls._meta.get_field(
+ 'base_finds').related_model.cached_label_bulk_update(**kwargs)
@property
def short_label(self):