1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/project/common/views.py

13 lines
339 B
Python
Raw Normal View History

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
return context