Properly format templates

This commit is contained in:
2022-08-09 11:54:44 +01:00
parent ba51922fe9
commit 220a4e2451
9 changed files with 122 additions and 104 deletions

View File

@@ -3,7 +3,6 @@ import json
from django.conf import settings
from django.http import HttpResponse, JsonResponse
from django.shortcuts import render
from django.utils.html import format_html
from django.views import View
from django_tables2 import SingleTableMixin
from rest_framework.parsers import FormParser
@@ -40,7 +39,7 @@ class DrilldownTableView(View, SingleTableMixin):
template_name = "ui/drilldown/table_results_partial.html"
if context:
return render(request, self.template_name, context)
return render(request, template_name, context)
else:
return HttpResponse("No results")