add deletion of DeletedDocument objects to the undelete-all command

This commit is contained in:
Benjamin Dauvergne 2013-11-22 15:04:30 +01:00
parent 5c979fb5a7
commit 9cd7d79131
1 changed files with 1 additions and 0 deletions

View File

@ -9,4 +9,5 @@ class Command(BaseCommand):
count = models.Mailbox.objects.filter(deleted=True).count()
models.Mailbox.objects.update(deleted=False)
models.DeletedMailbox.objects.all().delete()
models.DeletedDocument.objects.all().delete()
print "Undeleted %d documents." % count