app/soc/views/models/document.py
changeset 550 577dbfbeef97
parent 514 55bd39dab49c
child 553 c0cc20b4afc9
equal deleted inserted replaced
549:00a9ce3dc082 550:577dbfbeef97
    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):