RE: one field of modelForm doesn't being displayed

2012-07-18 Thread lacrymol...@gmail.com
Show us the model and form code -Mensaje original- De: mapapage Enviados: 18/07/2012 07:48:59 Asunto: one field of modelForm doesn't being displayed I confront a strange situation since one field of my modelForm doesn't being displayed (only its label is) so I can't put a value there

Re: one field of modelForm doesn't being displayed

2012-07-18 Thread Tomas Neme
> You could override your ModelForm's save() method to save some data to that > field. And then modify the same ModelForm to exclude that field. For example, or maybe, just maybe, he might show us his model, form, and rendered html so we can actually help him identify and possibly fix his problem

Re: one field of modelForm doesn't being displayed

2012-07-18 Thread Kurtis Mullins
You could override your ModelForm's save() method to save some data to that field. And then modify the same ModelForm to exclude that field. For example, class MyForm(ModelForm): class Meta: exclude = ('excluded_field',) That way it won't expect any data for the field when processing

Re: one field of modelForm doesn't being displayed

2012-07-18 Thread Javier Guerra Giraldez
On Wed, Jul 18, 2012 at 5:48 AM, mapapage 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 th