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