fix issues with categories and so on

This commit is contained in:
bkfox
2017-08-25 20:12:38 +02:00
parent 45ffdd1b53
commit 917fe43629
6 changed files with 75 additions and 45 deletions

View File

@ -31,7 +31,7 @@ class TemplateMixin(models.Model):
from django.template.loader import get_template
get_template(cl.template_name)
except TemplateDoesNotExist:
cl.template = 'aircox_cms/sections/section_item.html'
cl.template_name = 'aircox_cms/sections/section_item.html'
return cl.template_name
def get_context(self, request, page):