academon/core/mixins/frontend.py
2022-08-08 09:43:31 +00:00

7 lines
No EOL
184 B
Python

class TitleMixin:
title = "Untitled Page"
def get_context_data(self):
context = super().get_context_data()
context["title"] = self.title
return context