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()


On Sep 6, 5:03 pm, David <[EMAIL PROTECTED]> wrote:
> Hi,
>
> newforms and form_for_instance have been removed
> How would I write the following using the new notation
>
> I have replaced
> from django import newforms as forms
> with
> from django import forms
>
> but unsure as to what to do with the following
>
> def person_form(request, pID="0")
>       p = get_object_or_404(Person, pk=pID)
>       PersonForm = forms.form_for_instance(p)
>       pForm = PersonForm()
>       return render_to_response('person_form.html', {'pForm':pForm})
>
> Thanks,
> David.
--~--~---------~--~----~------------~-------~--~----~
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