Skip to content

Commit

Permalink
Fixed sqlite bug in delete_all_models
Browse files Browse the repository at this point in the history
  • Loading branch information
mtford90 committed Jun 12, 2014
1 parent 063a2e3 commit b881128
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,7 @@ dist
.vagrant

# Hardlinks
django_silky/silk
/django_silky/silk

# Pip
/src
2 changes: 1 addition & 1 deletion silk/tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def delete_all_models(model_class):
:return:
"""
while model_class.objects.count():
ids = model_class.objects.values_list('pk', flat=True)[:100]
ids = model_class.objects.values_list('pk', flat=True)[:80]
model_class.objects.filter(pk__in = ids).delete()


Expand Down

0 comments on commit b881128

Please sign in to comment.