diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-30 20:08:14 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-30 20:08:14 +0200 |
commit | 72e1a76db594e892e4f3c9a8a027486774b0f60f (patch) | |
tree | 937490d21c02b1cf2a6bfca296e303b3eea71196 /archaeological_context_records/models.py | |
parent | ce5abc88308f741a9670891026c5ecd90eb334c1 (diff) | |
download | Ishtar-72e1a76db594e892e4f3c9a8a027486774b0f60f.tar.bz2 Ishtar-72e1a76db594e892e4f3c9a8a027486774b0f60f.zip |
Fix cascading bulk update
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index d27c6a262..b838b9a57 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -17,6 +17,7 @@ # See the file COPYING for details. +import time from django.conf import settings from django.contrib.gis.db import models @@ -358,7 +359,7 @@ class ContextRecord(BulkUpdatedItem, BaseHistorizedItem, ImageModel, OwnPerms, with connection.cursor() as c: c.execute(sql, args) cls._meta.get_field_by_name( - 'base_finds')[0].model.cached_label_bulk_update(**kwargs) + 'base_finds')[0].related_model.cached_label_bulk_update(**kwargs) @property def short_label(self): |