On Oct 24, 5:21 am, Florian Lindner <[EMAIL PROTECTED]> wrote:
> I'm looking for an example on how to use the
> django.views.generic.create_update.update_object generic view.

The create and update generic views haven't been updated for newforms
yet. There's a Django Snippet [1]_ that might be helpful in the
meantime.

.. [1] http://www.djangosnippets.org/snippets/99/

> Is object.get_absolute_url() a function I need to implement in my model?

Yes. [2]_

.. [2] http://www.djangoproject.com/documentation/model-api/#get-absolute-url

> The documentation of the view links to the manipulator and formfield
> documentation. There is mentioned that learning the stuff isn't worth anymore
> cause it's being replaced. Is this true also for this generic view? Where can
> I find an example on how to use the view with the newforms (I think it's this
> it's being replaced with). I'm using the svn version of Django.

Oldforms isn't worth learning at this point -- newforms is "nearly
there". There are some examples ([3]_, [4]_) of how to use newforms in
a view on the newforms page in the docs.

.. [3] 
http://www.djangoproject.com/documentation/newforms/#using-forms-in-views-and-templates
.. [4] http://www.djangoproject.com/documentation/newforms/#form-for-instance

The only generic views that are currently not working are create and
update.

- whiteinge


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to