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