aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/mixins.py
diff options
context:
space:
mode:
authorTom Christie2013-02-01 11:58:55 +0000
committerTom Christie2013-02-01 11:58:55 +0000
commitd9c7b1c58523d63c8118d88f44ebfdf5f35e942a (patch)
tree6efc5a04556b1800756034791ce8aed082f25d4d /rest_framework/mixins.py
parent8021bb5d5089955b171173e60dcc0968e13d29ea (diff)
parent0f0e76d8b1b7a7a28b4ce2c6d8f7ecc89e7219ff (diff)
downloaddjango-rest-framework-d9c7b1c58523d63c8118d88f44ebfdf5f35e942a.tar.bz2
Merge branch 'p3k' of https://github.com/linovia/django-rest-framework into working
Conflicts: rest_framework/authentication.py rest_framework/relations.py rest_framework/serializers.py rest_framework/settings.py rest_framework/tests/authentication.py rest_framework/tests/genericrelations.py rest_framework/tests/generics.py rest_framework/tests/relations_hyperlink.py rest_framework/tests/relations_nested.py rest_framework/tests/relations_pk.py rest_framework/tests/serializer.py
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 43581ae9..acaf8a71 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
@@ -41,7 +43,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()