Skip to content

Instantly share code, notes, and snippets.

@pilt
Created July 18, 2010 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pilt/480624 to your computer and use it in GitHub Desktop.
Save pilt/480624 to your computer and use it in GitHub Desktop.
for swapr in SwapRequest.objects.all():
if len(swapr.swappossibility_set.all()) == 0:
swapr.delete()
@pilt
Copy link
Author

pilt commented Jul 23, 2010

How to make faster?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment