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:
Roberto Rosario
2018-12-06 15:58:19 -04:00
parent 0d9bda0ccf
commit 4d84b5f28f
7 changed files with 21 additions and 14 deletions
+2 -2
View File
@@ -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,