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 | cca497f2b81fa6d7d7797953afda2bcffea8e066 (patch) | |
tree | b58ea191ef3cb985ed7d1c75ad60273128652638 /archaeological_context_records/models.py | |
parent | 68e9e65081a102186c9ddf7b0caed0edb8f83561 (diff) | |
download | Ishtar-cca497f2b81fa6d7d7797953afda2bcffea8e066.tar.bz2 Ishtar-cca497f2b81fa6d7d7797953afda2bcffea8e066.zip |
Django 1.11: adapt all get_field_* to match the current Options API
Diffstat (limited to 'archaeological_context_records/models.py')
-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): |