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

View File

@@ -3,7 +3,6 @@ from __future__ import unicode_literals
import hashlib
from django.apps import apps
from django.conf import settings
from django.db import models
from django.template import loader
from django.template.response import TemplateResponse
@@ -11,6 +10,8 @@ from django.urls import reverse
from django.utils.encoding import force_text, python_2_unicode_compatible
from django.utils.translation import ugettext
from .settings import setting_home_view
@python_2_unicode_compatible
class Collection(object):
@@ -385,7 +386,7 @@ class Template(object):
def render(self, request):
context = {
'home_view': settings.HOME_VIEW,
'home_view': setting_home_view.value,
}
result = TemplateResponse(
request=request,