academon/core/mixins/frontend.py

7 lines
184 B
Python
Raw Normal View History

2022-08-08 09:43:31 +00:00
class TitleMixin:
title = "Untitled Page"
def get_context_data(self):
context = super().get_context_data()
context["title"] = self.title
return context