equal
deleted
inserted
replaced
50 |
50 |
51 class Meta: |
51 class Meta: |
52 model = soc.models.document.Document |
52 model = soc.models.document.Document |
53 |
53 |
54 #: list of model fields which will *not* be gathered by the form |
54 #: list of model fields which will *not* be gathered by the form |
55 exclude = ['inheritance_line', 'author', 'created', 'modified'] |
55 exclude = ['inheritance_line', 'author', 'created', 'modified', 'scope'] |
56 |
56 |
57 def clean_scope_path(self): |
57 def clean_scope_path(self): |
58 scope_path = self.cleaned_data.get('scope_path') |
58 scope_path = self.cleaned_data.get('scope_path') |
59 # TODO(tlarsen): combine path and link_id and check for uniqueness |
59 # TODO(tlarsen): combine path and link_id and check for uniqueness |
60 if not validate.isScopePathFormatValid(scope_path): |
60 if not validate.isScopePathFormatValid(scope_path): |