Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
faf76a4b
Commit
faf76a4b
authored
Dec 31, 2014
by
Craig Blaszczyk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spelling & grammar errors
parent
0b8a83bd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
rest_framework/exceptions.py
+1
-1
rest_framework/generics.py
+1
-1
rest_framework/locale/en_US/LC_MESSAGES/django.po
+4
-4
No files found.
rest_framework/exceptions.py
View file @
faf76a4b
...
...
@@ -36,7 +36,7 @@ class APIException(Exception):
Subclasses should provide `.status_code` and `.default_detail` properties.
"""
status_code
=
status
.
HTTP_500_INTERNAL_SERVER_ERROR
default_detail
=
_
(
'A server error occured'
)
default_detail
=
_
(
'A server error occur
r
ed'
)
def
__init__
(
self
,
detail
=
None
):
if
detail
is
not
None
:
...
...
rest_framework/generics.py
View file @
faf76a4b
...
...
@@ -119,7 +119,7 @@ class GenericAPIView(views.APIView):
if
page
==
'last'
:
page_number
=
paginator
.
num_pages
else
:
raise
Http404
(
_
(
"Page is not 'last',
nor can i
t be converted to an int."
))
raise
Http404
(
_
(
"Page is not 'last',
and canno
t be converted to an int."
))
try
:
page
=
paginator
.
page
(
page_number
)
except
InvalidPage
as
exc
:
...
...
rest_framework/locale/en_US/LC_MESSAGES/django.po
View file @
faf76a4b
...
...
@@ -2,13 +2,13 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-12-
28 17:49
+0000\n"
"POT-Creation-Date: 2014-12-
31 12:48
+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
...
...
@@ -30,7 +30,7 @@ msgid "Must include \"username\" and \"password\""
msgstr ""
#: rest_framework/exceptions.py:39
msgid "A server error occured"
msgid "A server error occur
r
ed"
msgstr ""
#: rest_framework/exceptions.py:74
...
...
@@ -212,7 +212,7 @@ msgid "Expected a list of items but got type `{input_type}`"
msgstr ""
#: rest_framework/generics.py:122
msgid "Page is not 'last',
nor can i
t be converted to an int."
msgid "Page is not 'last',
and canno
t be converted to an int."
msgstr ""
#: rest_framework/generics.py:126
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment