Change how the HOME_VIEW setting is defined

HOME_VIEW is now COMMON_HOME_VIEW.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-11 22:00:33 -04:00
parent 4c8e647415
commit 4d91d82515
8 changed files with 26 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):
@@ -397,7 +398,7 @@ class Template(object):
def render(self, request):
context = {
'home_view': settings.HOME_VIEW,
'home_view': setting_home_view.value,
}
result = TemplateResponse(
request=request,