Fix py3k compat with functools.reduce

This commit is contained in:
Tom Christie 2013-05-10 23:06:42 +01:00
parent dd51d369c8
commit fd4a66cfc7

View File

@ -3,9 +3,9 @@ Provides generic filtering backends that can be used to filter the results
returned by list views. returned by list views.
""" """
from __future__ import unicode_literals from __future__ import unicode_literals
from django.db import models from django.db import models
from rest_framework.compat import django_filters from rest_framework.compat import django_filters
from functools import reduce
import operator import operator
FilterSet = django_filters and django_filters.FilterSet or None FilterSet = django_filters and django_filters.FilterSet or None