aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/mixins.py
diff options
context:
space:
mode:
authorXavier Ordoquy2012-11-22 07:48:41 +0100
committerXavier Ordoquy2012-11-22 07:48:41 +0100
commitbe003145ca120708db51db4e85f6088bde8dce1c (patch)
tree9df0e343b9adc196ddd7e5fbc1b93e4c339260b2 /rest_framework/mixins.py
parent91190487b747f0c9c09ecd5678f719bb2e745d27 (diff)
parent606c20f012c5a1fdcfd661eb280bab22b94afcf5 (diff)
downloaddjango-rest-framework-be003145ca120708db51db4e85f6088bde8dce1c.tar.bz2
Merge branch 'p3k' of github.com:linovia/django-rest-framework into p3k
Diffstat (limited to 'rest_framework/mixins.py')
-rw-r--r--rest_framework/mixins.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rest_framework/mixins.py b/rest_framework/mixins.py
index 1edcfa5c..87d97bed 100644
--- a/rest_framework/mixins.py
+++ b/rest_framework/mixins.py
@@ -4,6 +4,8 @@ Basic building blocks for generic class based views.
We don't bind behaviour to http method handlers yet,
which allows mixin classes to be composed in interesting ways.
"""
+from __future__ import unicode_literals
+
from django.http import Http404
from rest_framework import status
from rest_framework.response import Response
@@ -38,7 +40,7 @@ class ListModelMixin(object):
List a queryset.
Should be mixed in with `MultipleObjectAPIView`.
"""
- empty_error = u"Empty list and '%(class_name)s.allow_empty' is False."
+ empty_error = "Empty list and '%(class_name)s.allow_empty' is False."
def list(self, request, *args, **kwargs):
queryset = self.get_queryset()