Skip to content

Instantly share code, notes, and snippets.

@shofetim
Created April 4, 2014 15:24
Show Gist options
  • Save shofetim/9977011 to your computer and use it in GitHub Desktop.
Save shofetim/9977011 to your computer and use it in GitHub Desktop.
from reports.tasks import generate_projected_stock_transfers
#hopefully running it on a subset will speed things up
j2 = Route.objects.get(code='J2')
some_drop_ids = [i['id'] for i in j2.drop_points.all().values('id')]
generate_projected_stock_transfers(days=3, drop_point_ids=some_drop_ids)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment