[Toaster] quick question on double key queries
Reyna, David
david.reyna at windriver.com
Wed Jan 8 03:17:00 PST 2014
Hi Alex,
Perhaps you can answer this easily? I would like to filter the "Task" data base for the records that match a given recipe_id. It appears that I need to filter for both the FK's "recipe_id" and "build_id".
How do I set up that query? I do not think that this is correct:
def recipe(request, build_id, recipe_id):
...
tasks = Task.objects.filter(recipe_id=recipe_id, build_id=build_id)
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20140108/1421618e/attachment.html>
More information about the toaster
mailing list