app/soc/views/models/host.py
changeset 913 db38e7680d1c
parent 858 e79e7a22326f
child 920 39badbfb80be
equal deleted inserted replaced
912:5b13221456f4 913:db38e7680d1c
    51 
    51 
    52     #: db.Model subclass for which the form will gather information
    52     #: db.Model subclass for which the form will gather information
    53     model = soc.models.host.Host
    53     model = soc.models.host.Host
    54 
    54 
    55     #: list of model fields which will *not* be gathered by the form
    55     #: list of model fields which will *not* be gathered by the form
    56     exclude = ['scope', 'user']
    56     exclude = ['scope', 'user', 'state']
    57 
    57 
    58   def clean_empty(self, field):
    58   def clean_empty(self, field):
    59     data = self.cleaned_data.get(field)
    59     data = self.cleaned_data.get(field)
    60     if not data or data == u'':
    60     if not data or data == u'':
    61       return None
    61       return None