Re: How send data to UpdateView from javascript. (Django 1.5)

2013-06-09 Thread Ariel V. R.
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

Re: How send data to UpdateView from javascript. (Django 1.5)

2013-06-06 Thread Ariel V. R.
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

How send data to UpdateView from javascript. (Django 1.5)

2013-06-06 Thread Ariel V. R.
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. --