Hello
This is my code so far from urls.py
from django.views.generic import ListView, create_update
url(r'^reportwriting/types/edit/(?P<object_id>\d+)/?$',
create_update.update_object(
model=Type
)),
I am trying to use the new CRUD generic views but am repeatedly
getting the following error:
TypeError at /reportwriting/types/edit/1/
update_object() takes at least 1 argument (1 given)
I think syntactically I must be screwing up, but am not having much
progress using the Django docs.
Thanks for any assistance.
--
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.