aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/generics.py
diff options
context:
space:
mode:
authorCraig Blaszczyk2015-01-07 12:46:23 +0000
committerCraig Blaszczyk2015-01-07 12:46:23 +0000
commit91e316f7810157474d6246cd0024bd7f7cc31ff7 (patch)
tree1279d952e1bbc7cfb281cea90b7d215e15534ea1 /rest_framework/generics.py
parent9a4267049ba37883e3e0c21b5d453b9551343b8d (diff)
downloaddjango-rest-framework-91e316f7810157474d6246cd0024bd7f7cc31ff7.tar.bz2
prefer single quotes in source and double quotes in user visible strings; add some missing full stops to user visible strings
Diffstat (limited to 'rest_framework/generics.py')
-rw-r--r--rest_framework/generics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/generics.py b/rest_framework/generics.py
index 738ba544..7ebed032 100644
--- a/rest_framework/generics.py
+++ b/rest_framework/generics.py
@@ -120,12 +120,12 @@ class GenericAPIView(views.APIView):
if page == 'last':
page_number = paginator.num_pages
else:
- raise NotFound(_("Choose a valid page number. Page numbers must be a whole number, or must be the string \"last\"."))
+ raise NotFound(_('Choose a valid page number. Page numbers must be a whole number, or must be the string "last".'))
try:
page = paginator.page(page_number)
except InvalidPage as exc:
- error_format = _("Invalid page \"{page_number}\": {message}.")
+ error_format = _('Invalid page "{page_number}": {message}.')
raise NotFound(error_format.format(
page_number=page_number, message=six.text_type(exc)
))