MatterUpdateView is a subclass of the generic UpdateView
> class. If so, that class expects an object pk (id) or slug to be included
> as part of the URL pattern, and yours doesn't include either. Your URL
> pattern should look something more like: r"^manage/(?P\d+)/update/&q
it();
})
URL.PY
...
url(r'^manage_p1/update/', MatterUpdateView.as_view()),
...
El jueves, 6 de junio de 2013 23:45:59 UTC-5, Ariel V. R. escribió:
>
> Hello:
>
> I need to send data from html using javascript to UpdateView. Django sends
> me an error: "Generic d
Hello:
Hello:
I need to send data from html using javascript to UpdateView. Django sends
me an error: "Generic detail view MatterUpdateView must be called with
either an object pk or a slug."
I think that the problem exists because the method as_view() does not
receive the correct data.
--
3 matches
Mail list logo