Re: editing an entry ,how to call the form action

2010-02-08 Thread jimgardener
thanks rebus -jim > > > {{entryform.as_ul }} > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@goog

Re: editing an entry ,how to call the form action

2010-02-08 Thread rebus_
Opps, for you view context it should be "entryform" not "form": {{entryform.as_ul }} -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send em

Re: editing an entry ,how to call the form action

2010-02-08 Thread rebus_
On 8 February 2010 16:52, jimgardener wrote: > hi > I created a view function to edit an entry. > def edit_entry(request,id): >        entry=get_object_or_404(MyEntry,id=id) >        if request.method=='POST': >                form=MyEntryForm(request.POST,instance=entry) >                if form.

editing an entry ,how to call the form action

2010-02-08 Thread jimgardener
hi I created a view function to edit an entry. def edit_entry(request,id): entry=get_object_or_404(MyEntry,id=id) if request.method=='POST': form=MyEntryForm(request.POST,instance=entry) if form.is_valid(): form.save()