summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-08-21 22:49:29 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-08-21 22:49:29 +0200
commita6aa949e1e74c9edd81b275d61e1f354b5c39ba5 (patch)
treeb58ea191ef3cb985ed7d1c75ad60273128652638 /archaeological_context_records
parentc0eb7726323ec0cf710a5d4b2761d80849184953 (diff)
downloadIshtar-a6aa949e1e74c9edd81b275d61e1f354b5c39ba5.tar.bz2
Ishtar-a6aa949e1e74c9edd81b275d61e1f354b5c39ba5.zip
Django 1.11: adapt all get_field_* to match the current Options API
Diffstat (limited to 'archaeological_context_records')
-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):