diff options
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 |
commit | a6aa949e1e74c9edd81b275d61e1f354b5c39ba5 (patch) | |
tree | b58ea191ef3cb985ed7d1c75ad60273128652638 /archaeological_context_records | |
parent | c0eb7726323ec0cf710a5d4b2761d80849184953 (diff) | |
download | Ishtar-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.py | 4 |
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): |