fix view attribute names

This commit is contained in:
Paul Marillonnet 2019-05-03 10:34:36 +02:00
parent 9134784c86
commit da78303891
1 changed files with 3 additions and 2 deletions

View File

@ -43,7 +43,7 @@ logger = logging.getLogger(__name__)
class AuthorizationRuleEditView(UpdateView):
model = models.AuthorizationRule
template = "authentic2/edit_authorization_rule.html"
template_name = "authentic2/edit_authorization_rule.html"
title = _('Edit authorization Rule')
authorization_rule_edit_view = login_required(AuthorizationRuleEditView.as_view())
@ -51,8 +51,9 @@ authorization_rule_edit_view = login_required(AuthorizationRuleEditView.as_view(
class AuthorizationRuleCreateView(CreateView):
model = models.AuthorizationRule
template = "authentic2/create_authorization_rule.html"
template_name = "authentic2/create_authorization_rule.html"
title = _('Create authorization Rule')
fields = ['scopes']
authorization_rule_create_view = login_required(AuthorizationRuleCreateView.as_view())