select * from Item where tied = KEY('Item', <menu_key_name>)
----------
keakon
My blog(Chinese): www.keakon.net
Blog source code: https://bitbucket.org/keakon/doodle/
On Mon, Jan 3, 2011 at 9:11 AM, rahul jain <[email protected]> wrote:
> Hi,
>
> I have model defined like this
>
> class Menu(db.Model):
> type = db.StringProperty()
> desc = db.StringProperty()
>
> class Item(db.Model):
> desc = db.StringProperty()
> tied = db.ReferenceProperty(Menu, collection_name='item_list')
>
> I would like to do execute this query now ?
>
> select * from Item where tied = <menu_key_name>
>
> I did something like this
>
> db.Query (select * from Item where tied = <menu_key_name>)
>
> But its not working !
>
> Thanks for your help.
>
> --RJ
>
>
>
>
>
>
> --
> 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]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
--
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.