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
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
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.
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()
4 matches
Mail list logo