blob: a6cf6dd6ece48d650970b465ea08051b29ab53bd (
plain)
1
2
3
4
5
6
7
8
|
class HTMXMixin:
template_name_htmx: str | None = None
def get_template_name(self):
if self.request.htmx and self.template_name_htmx:
return self.template_name_htmx
else:
return self.template_name
|