diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-07-26 14:39:13 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-07-26 14:39:13 +0200 |
| commit | eb1585c1ea526d2f0979d6a91b33ed1023f4d8e0 (patch) | |
| tree | 8b9cef16c3dc1077b81465029b102391fa6106fa /archaeological_finds/models_finds.py | |
| parent | 073e8c59195863fcd70ca0723fd110fc2f908758 (diff) | |
| parent | cdec41e1a2af5fc2a3ab9ca8d3d4ad6fcab848c3 (diff) | |
| download | Ishtar-eb1585c1ea526d2f0979d6a91b33ed1023f4d8e0.tar.bz2 Ishtar-eb1585c1ea526d2f0979d6a91b33ed1023f4d8e0.zip | |
Merge branch 'master' into develop
Diffstat (limited to 'archaeological_finds/models_finds.py')
| -rw-r--r-- | archaeological_finds/models_finds.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index c8e0ef8e2..738da19a4 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -1101,6 +1101,12 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel, # base_find.material_index = \ # idx and idx['material_index__max'] + 1 or 1 + def fix(self): + """ + Fix redundant m2m dating association (usually after imports) + """ + Dating.fix_dating_association(self) + post_save.connect(cached_label_changed, sender=Find) |
