diff --git a/passbook/providers/oauth2/forms.py b/passbook/providers/oauth2/forms.py index c699659e2..659eb4bdd 100644 --- a/passbook/providers/oauth2/forms.py +++ b/passbook/providers/oauth2/forms.py @@ -75,6 +75,8 @@ class OAuth2ProviderForm(forms.ModelForm): class ScopeMappingForm(forms.ModelForm): """Form to edit ScopeMappings""" + template_name = "providers/oauth2/property_mapping_form.html" + def clean_expression(self): """Test Syntax""" expression = self.cleaned_data.get("expression") diff --git a/passbook/providers/oauth2/templates/providers/oauth2/property_mapping_form.html b/passbook/providers/oauth2/templates/providers/oauth2/property_mapping_form.html new file mode 100644 index 000000000..4bd3085af --- /dev/null +++ b/passbook/providers/oauth2/templates/providers/oauth2/property_mapping_form.html @@ -0,0 +1,14 @@ +{% extends "generic/form.html" %} + +{% load i18n %} + +{% block beneath_form %} +
+ +
+

+ Expression using Python. See here for a list of all variables. +

+
+
+{% endblock %}