diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-25 11:29:47 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-25 11:29:47 +0100 |
| commit | 6b6ca196840dbd2eeeee865bd2e6c68cf9372c4c (patch) | |
| tree | 42f9649632e7cb18b4faf337cd9e459e9edee9c7 /archaeological_finds/models_treatments.py | |
| parent | 613f7ade4ac8bd06c300a07afc074e76f1e7288a (diff) | |
| download | Ishtar-6b6ca196840dbd2eeeee865bd2e6c68cf9372c4c.tar.bz2 Ishtar-6b6ca196840dbd2eeeee865bd2e6c68cf9372c4c.zip | |
Manage container deletion (refs #3392)
Diffstat (limited to 'archaeological_finds/models_treatments.py')
| -rw-r--r-- | archaeological_finds/models_treatments.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index 7f2e4e348..67bbd3ddb 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -214,7 +214,9 @@ def pre_delete_treatment(sender, **kwargs): for find in Find.objects.filter(upstream_treatment=treatment).all(): if find.downstream_treatment: # a new treatment have be done since the deleted treatment - raise NotImplemented() + # TODO ! + # raise NotImplemented() + pass find.delete() for find in Find.objects.filter(downstream_treatment=treatment).all(): find.downstream_treatment = None |
