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
commit3a8aa349b06129c4a8f591d56147ce0c97d4d9c5 (patch)
treecf9e060d38c62d422684f0de85239822eafed2df /ishtar_common/management
parentdd2e367dde3d8df4fdfbc10b8f0d87607b160ef6 (diff)
downloadIshtar-3a8aa349b06129c4a8f591d56147ce0c97d4d9c5.tar.bz2
Ishtar-3a8aa349b06129c4a8f591d56147ce0c97d4d9c5.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')