Common app: Move HOME_VIEW setting
The HOME_VIEW setting is not a Django setting but a setting from the common app. Move the HOME_VIEW to the COMMON namespace and rename it to COMMON_HOME_VIEW. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -17,7 +17,7 @@ from stronghold.decorators import public
|
||||
|
||||
import mayan
|
||||
from mayan.apps.common.settings import (
|
||||
setting_project_title, setting_project_url
|
||||
setting_home_view, setting_project_title, setting_project_url
|
||||
)
|
||||
|
||||
from .forms import EmailAuthenticationForm, UsernameAuthenticationForm
|
||||
@@ -86,7 +86,7 @@ def password_change_view(request):
|
||||
'Changing the password is not allowed for this account.'
|
||||
)
|
||||
)
|
||||
return HttpResponseRedirect(reverse(settings.HOME_VIEW))
|
||||
return HttpResponseRedirect(reverse(setting_home_view.view))
|
||||
|
||||
return password_change(
|
||||
request, extra_context=extra_context,
|
||||
|
||||
Reference in New Issue
Block a user