app/soc/views/models/host.py
changeset 569 96d9655a7538
parent 560 a32be584ee04
child 575 ba4a7e90139d
equal deleted inserted replaced
568:6713617751b4 569:96d9655a7538
    45 
    45 
    46     #: db.Model subclass for which the form will gather information
    46     #: db.Model subclass for which the form will gather information
    47     model = soc.models.host.Host
    47     model = soc.models.host.Host
    48 
    48 
    49     #: list of model fields which will *not* be gathered by the form
    49     #: list of model fields which will *not* be gathered by the form
    50     exclude = ['inheritance_line', 'scope']
    50     exclude = ['scope']
    51 
    51 
    52   def clean_empty(self, field):
    52   def clean_empty(self, field):
    53     data = self.cleaned_data.get(field)
    53     data = self.cleaned_data.get(field)
    54     if not data or data == u'':
    54     if not data or data == u'':
    55       return None
    55       return None