add authorization rule edit view
This commit is contained in:
parent
bf66f201e9
commit
2bfa718fbe
|
@ -41,6 +41,14 @@ from . import (utils, app_settings, forms, compat, decorators, constants, models
|
|||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class AuthorizationRuleEditView(UpdateView):
|
||||
model = models.AuthorizationRule
|
||||
template = "authentic2/edit_authorization_rule.html"
|
||||
title = _('Edit authorization Rule')
|
||||
|
||||
authorization_rule_edit_view = login_required(AuthorizationRuleEditView.as_view())
|
||||
|
||||
|
||||
def redirect(request, next, template_name='redirect.html'):
|
||||
'''Show a simple page which does a javascript redirect, closing any popup
|
||||
enclosing us'''
|
||||
|
|
Loading…
Reference in New Issue