oops, should be.

    pForm = PersonForm(instance=p)


On Sep 6, 5:14 pm, David <[EMAIL PROTECTED]> wrote:
> nm i figured it out.
>
> class PersonForm(ModelForm):
>     class Meta:
>           model = Person
>
> def person_form(request, pID='0'):
>     p = get_object_or_404(Person,pk=pID)
> #    PersonForm = forms.ModelForm()
>     pForm = PersonForm()
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to