mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Fix py3k compat with functools.reduce
This commit is contained in:
parent
dd51d369c8
commit
fd4a66cfc7
|
@ -3,9 +3,9 @@ Provides generic filtering backends that can be used to filter the results
|
|||
returned by list views.
|
||||
"""
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models
|
||||
from rest_framework.compat import django_filters
|
||||
from functools import reduce
|
||||
import operator
|
||||
|
||||
FilterSet = django_filters and django_filters.FilterSet or None
|
||||
|
|
Loading…
Reference in New Issue
Block a user