thanks for that alex

On May 16, 9:53 pm, Ramiro Morales <cra...@gmail.com> wrote:
> On Sat, May 16, 2009 at 5:18 PM, Alex Gaynor <alex.gay...@gmail.com> wrote:
>
> > On Sat, May 16, 2009 at 3:03 PM, simon101 <simon...@gmail.com> wrote:
>
> >> Hi
>
> >> I am using ModelForms to create forms from the models [...]
> >> but  it doesn't contain the id
> >> for the object id for the object which the ModelForm pulled it off.
>
> >> Anyone got any ideas how to fix this?  My code looks like this.
>
> > self.instance will be the current object, and therefore self.instances.pk
> > will be that object's id.  This is all assuming GAE's forms work the same as
> > djangos.
>
> For Django, there is a ticket ([1]8861) open that asks for a documentation
> enhancement: adding a mention about self.instance in the relevant model form
> validation sections.
>
> --
> Ramiro Moraleshttp://rmorales.net
>
> 1.http://code.djangoproject.com/ticket/8861
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to