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 | a7d4e391051ee378a140ecfa882167275586a074 (patch) | |
tree | 937490d21c02b1cf2a6bfca296e303b3eea71196 /archaeological_context_records/models.py | |
parent | aa6d2c7c64ac5f69ac6c1653187a46cb04760c0d (diff) | |
download | Ishtar-a7d4e391051ee378a140ecfa882167275586a074.tar.bz2 Ishtar-a7d4e391051ee378a140ecfa882167275586a074.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): |