Properly format templates
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user