equal
deleted
inserted
replaced
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 |