Skip to content

Instantly share code, notes, and snippets.

@kyleterry
Created August 1, 2011 19:46
Show Gist options
  • Save kyleterry/1118843 to your computer and use it in GitHub Desktop.
Save kyleterry/1118843 to your computer and use it in GitHub Desktop.
@classmethod
def needs_list(cls):
Piece = models.get_model("warehouse_pieces", "Piece")
needs = Piece.objects.filter(vendorpiece__is_active=True).order_by("cached_days_until_out_of_stock")
return needs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment