Savraj,
I ended up getting this to work:
data= bugForm(data=self.request.POST)
if data.is_valid():
# Save the data
entity=data.save(commit=False)
entity._key_name='bug%d'%entity.bug_id
entity.put()
Note the _key_name ( I found this by running the dev server in the
debugger)
I haven't tried deploying it yet though.
-Bill
On Nov 8, 1:07 pm, Savraj <[EMAIL PROTECTED]> wrote:
> I have found a workaround -- but I would still like to know if this is
> possible.
>
> On Nov 6, 11:58 am, Savraj <[EMAIL PROTECTED]> wrote:
>
> > Hey folks. I love app engine!
>
> > Quick question -- I am using DjangoFormsto create an entity, as
> > explained here:
>
> >http://code.google.com/appengine/articles/djangoforms.html
>
> > Can Isetthis new entity'skey_name? It's not clear from the
> > documentation. I want tosetthe key name so I can quickly look up
> > the entity in the future using Model.get_by_key_name. Thanks in
> > advance for your help!
>
> > -savraj
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---