Saturday, March 12, 2016

Re: Model or Form class

You can use forms.Form when you want to build a custom form which isn't directly connected to a model on the database. For instance one use for a forms.Form is where you are collecting data which will be stored into attributes on different models.

The documentation I think uses forms.ModelForn which is ideal for building forms which directly relate to models in your database.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5e8c324b-2c9b-42b9-8076-8892f0bf8c59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment