First let me say I read everything I can find but not sure I'm
understand. This seems like a no brainer so I'm confused. My desire is
to filter by numeric id. The reason is I want to use ID's in URL's vs.
Key's.

So I have models:

class User:
   blah, blah, blah

class Album:
   user = db.ReferenceProperty(User)

then in views I can successfully do:

queryset = get_list_or_404(Album, 'user =', db.Key(key))

where key is key ie. agxteWJsaW5kcmViZWxyCgsSBFVzZXIYAgw

What I''m looking for would be something like.

queryset = get_list_or_404(Album, ''user.id =',db.Key(key))

where key is key.id i.e. 14, 283, 1004, etc.

Is it really true this can't be done? What am I missing?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to