On Jan 7, 8:55 am, robos85 <prog...@gmail.com> wrote:
> Is it possible to add field (I want it to be visible in generated form and
> after post) to form which is not included in Model? I need it to make a
> check after form.is_valid(), but this field won't go to DB.
>
> If yes - how can I do that?

It is possible. Google for django dynamic forms. The same techniques
can be used for model forms, but you'll have to decide what to do with
the extra fields.

Some links to get you started:
http://jacobian.org/writing/dynamic-form-generation/
http://www.b-list.org/weblog/2008/nov/09/dynamic-forms/
http://www.hindsightlabs.com/blog/2010/02/11/adding-extra-fields-to-a-model-form-in-djangos-admin/

Best regards,
BN

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to