add authorization rule create url pattern

This commit is contained in:
Paul Marillonnet 2019-05-03 10:25:10 +02:00
parent b61dfefbcf
commit d92e8a07b1
1 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,8 @@ from django.views.decorators.debug import sensitive_post_parameters
from authentic2.utils import import_module_or_class, redirect
from . import app_settings, decorators, profile_views, hooks
from .views import (logged_in, edit_profile, email_change, email_change_verify, profile)
from .views import (logged_in, edit_profile, email_change, email_change_verify, profile,
authorization_rule_create_view)
SET_PASSWORD_FORM_CLASS = import_module_or_class(
app_settings.A2_REGISTRATION_SET_PASSWORD_FORM_CLASS)
@ -94,4 +95,7 @@ urlpatterns = [
auth_views.password_reset_done,
name='auth_password_reset_done'),
url(r'^switch-back/$', profile_views.switch_back, name='a2-switch-back'),
url(r'^authz-rule/$',
authorization_rule_create_view,
name='a2-authz-rule-create'),
]