2015-10-19 13:04:49 +01:00
|
|
|
from django.views.generic import TemplateView
|
|
|
|
|
|
|
|
|
2015-11-25 21:11:52 +00:00
|
|
|
class CustomTemplate(TemplateView):
|
|
|
|
html_title = ""
|
|
|
|
body_class = ""
|
2015-11-26 09:53:40 +00:00
|
|
|
|
2015-11-25 21:11:52 +00:00
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
context = super().get_context_data(**kwargs)
|
|
|
|
context['html_title'] = self.html_title
|
|
|
|
context['body_class'] = self.body_class
|
2015-12-11 08:40:01 +00:00
|
|
|
context['js_redirect'] = True
|
2015-11-25 21:11:52 +00:00
|
|
|
return context
|