def clean_scope(form): scope = form.cleaned_data['scope'] return parse_scope(scope)
def clean_scope(self): scope = self.cleaned_data['scope'] return parse_scope(scope)