Skip to content

Commit 995687b

Browse files
author
Ryan P Kilby
committed
Import compat module instead of function
1 parent 57ae94d commit 995687b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest_framework_filters/backends.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
from django.template import loader
3-
from rest_framework.compat import template_render
3+
from rest_framework import compat
44
import rest_framework.filters
55

66
from .filterset import FilterSet
@@ -32,4 +32,4 @@ def to_html(self, request, queryset, view):
3232
'filter': filter_instance
3333
}
3434
template = loader.get_template(self.template)
35-
return template_render(template, context)
35+
return compat.template_render(template, context)

0 commit comments

Comments
 (0)