What is wrong with the following code?

class IPAddressAdminForm(forms.ModelForm):
     notification_sent = 
forms.BooleanField(widget=forms.widgets.HiddenInput,required=False)
     class Meta:
         model = IPAddress


class IPAddress(BaseModel):
     network = models.ForeignKey(Network)
     ip = models.IPAddressField()
     user = models.ForeignKey(User,blank=True,null=True)
     registered = models.DateTimeField(blank=True,null=True)
     renewed = models.DateTimeField(blank=True,null=True)
     expires = models.DateTimeField(blank=True,null=True)
     notification_sent = models.BooleanField(default=False)


Despite the widget of notification_sent is set to HiddenInput, the label 
for the boolean field is still rendered in the admin.

Many thanks for your help


--~--~---------~--~----~------------~-------~--~----~
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