summaryrefslogtreecommitdiff
path: root/ishtar_common/management
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-01 17:18:33 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-13 18:26:03 +0200
commitc6b17aa8d058fe581539bf722b6c5cc2c6711fb0 (patch)
treecf9e060d38c62d422684f0de85239822eafed2df /ishtar_common/management
parentb6afe4668dcaa05df44614d8d362943eb660967c (diff)
downloadIshtar-c6b17aa8d058fe581539bf722b6c5cc2c6711fb0.tar.bz2
Ishtar-c6b17aa8d058fe581539bf722b6c5cc2c6711fb0.zip
Fix clean parcel script
Diffstat (limited to 'ishtar_common/management')
-rw-r--r--ishtar_common/management/commands/clean_ishtar.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ishtar_common/management/commands/clean_ishtar.py b/ishtar_common/management/commands/clean_ishtar.py
index d3da40fd8..3117022ee 100644
--- a/ishtar_common/management/commands/clean_ishtar.py
+++ b/ishtar_common/management/commands/clean_ishtar.py
@@ -30,6 +30,5 @@ class Command(BaseCommand):
def handle(self, *args, **options):
for parcel in Parcel.objects.all():
- parcel.skip_history_when_saving = True
- parcel.save()
+ parcel.clean_orphan()
self.stdout.write('Parcel cleaned.\n')