Wednesday, July 18, 2012

Re: one field of modelForm doesn't being displayed

On Wed, Jul 18, 2012 at 5:48 AM, mapapage <mapapage@gmail.com> wrote:
> Of course, i don't wanna change the thing that it is not nullable.

then what do you want to insert there?

you can either define a default value, add a hidden field to the form,
or in the view add some value to the user input before feeding to the
form object

--
Javier

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment