Skip to content

Instantly share code, notes, and snippets.

@areski
Created February 6, 2013 11:40
Show Gist options
  • Save areski/4722083 to your computer and use it in GitHub Desktop.
Save areski/4722083 to your computer and use it in GitHub Desktop.
prefixlist = range(0, 100)
rate_list = VoIPRetailRate.objects.values('prefix', 'retail_rate', 'prefix__destination').filter(prefix__in=[int(s) for s in prefixlist])
print rate_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment