On 12/30/06, django enthusiast <[EMAIL PROTECTED]> wrote:
I was also looking for examples of implementing typical use-cases with
newforms. (creating form from existing model rows - Basic CRUD). The
tests do not seem to cover creating forms from existing model and form
validation. I had left a comment about this on the django newforms
page, but that comment has since been deleted.

See the unit tests in tests/modeltests/model_forms/models.py for
examples of how to create a Form from a model class or a model
instance.

Regarding your deleted comment: Comments on the documentation pages
are intended to be suggestions and corrections for the docs themselves
-- not tech support questions. We delete anything that doesn't comment
directly on the docs, so that the comments section remains helpful.
The place to ask questions is on django-users, not in the doc
comments.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
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