Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for sqlite

  • Loading branch information...
commit 181acb4e8737dda163cf704d77bb30e2439a8d22 1 parent 54f3c7d
Francesc Ortiz authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/reversion/management/commands/deleterevisions.py
4 src/reversion/management/commands/deleterevisions.py
View
@@ -191,5 +191,7 @@ def handle(self, *app_labels, **options):
# Delete versions and revisions
print "Deleting revisions..."
- revision_query.delete()
+ # revision_query.delete() // Fails on sqlite
+ for item in revision_query:
+ item.delete()
print "Done"
Please sign in to comment.
Something went wrong with that request. Please try again.