app/soc/views/models/host.py
changeset 550 577dbfbeef97
parent 514 55bd39dab49c
child 553 c0cc20b4afc9
equal deleted inserted replaced
549:00a9ce3dc082 550:577dbfbeef97
    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']
    50     exclude = ['inheritance_line', '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