You want the field hidden or not on the form at all ?

if you want it out of the form user 
exlude = ('dri',) on Meta but type exclude with a 'd' :)

On Thu, 2009-10-08 at 07:14 -0700, luca72 wrote:
> I have try it but the field dri is show in the form
> 
> Luca
> 
> On 8 Ott, 16:06, "Mark (Nosrednakram)" <nosrednak...@gmail.com> wrote:
> >  Hello Luca,
> >
> >
> >
> > > my models is this:
> > > class Per(models.Model):
> > >     dip = models.CharField(max_length=100)
> > >     di = models.CharField(max_length=100)
> > >     df = models.CharField(max_length=100)
> > >     m = models.CharField(max_length=500)
> > >     dri = models.CharField(max_length=100)
> >
> > > the form is this:
> >
> > > class PerForm(ModelForm):
> > >     class Meta:
> > >         model = Per
> >
> > > i need that the field dri is hidden in the render of the form, can you
> > > tell me how i can do this?
> >
> > You can and exclude to your Meta:
> >
> > class PerForm(ModelForm):
> >     class Meta:
> >         model = Per
> >         excluse = ('dri')
> >
> > Hope this Helps,
> > Mark
> > 


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

Reply via email to