Re: Seeing if a variable value is within a dictionary key value within a list of dictionaries

2012-09-07 Thread Craig Amundsen
eas? > > J > > P.s. Tim, my data structure isn't that malleable. It's essentially I query > my appengine datastore, and that retrieves a list of the data models, each > of which can be treated as a dict. The dicts are used in a few different > ways in the view - only this is giving

Re: Seeing if a variable value is within a dictionary key value within a list of dictionaries

2012-09-07 Thread Craig Amundsen
{% if folder.id in private_folder_details.values() %} should do the trick On Fri, Sep 7, 2012 at 11:06 AM, Jason <1jason.whatf...@gmail.com> wrote: > Hi there, > > I'm using django 1.2 and am attempting to get the following code to work. > > private_folder_details = [{"folderId":"", "name":

Re: Filtering across tables

2011-12-08 Thread Craig Amundsen
Hi - Responding to myself... Doesn't this always happen? As soon as you ask for help, you figure out the solution. Here's what I want: c_list = C.objects.fiter(b__a__pk = pk_of_a_instance) - Craig On Thu, Dec 8, 2011 at 9:36 AM, Craig wrote: > Hi - > > I'm pretty new