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
696c053f
Commit
696c053f
authored
May 19, 2013
by
Oscar Vilaplana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/Single Character/String/
parent
f1f5f92d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
rest_framework/fields.py
+1
-1
rest_framework/tests/fields.py
+2
-2
rest_framework/tests/generics.py
+2
-2
No files found.
rest_framework/fields.py
View file @
696c053f
...
@@ -33,7 +33,7 @@ from rest_framework.settings import api_settings
...
@@ -33,7 +33,7 @@ from rest_framework.settings import api_settings
HUMANIZED_FIELD_TYPES
=
{
HUMANIZED_FIELD_TYPES
=
{
'BooleanField'
:
u'Boolean'
,
'BooleanField'
:
u'Boolean'
,
'CharField'
:
u'S
ingle Character
'
,
'CharField'
:
u'S
tring
'
,
'ChoiceField'
:
u'Single Choice'
,
'ChoiceField'
:
u'Single Choice'
,
'ComboField'
:
u'Single Choice'
,
'ComboField'
:
u'Single Choice'
,
'DateField'
:
u'Date'
,
'DateField'
:
u'Date'
,
...
...
rest_framework/tests/fields.py
View file @
696c053f
...
@@ -885,7 +885,7 @@ class HumanizedSerializer(TestCase):
...
@@ -885,7 +885,7 @@ class HumanizedSerializer(TestCase):
self
.
assertEqual
(
humanized
,
{
self
.
assertEqual
(
humanized
,
{
'field1'
:
{
'field1'
:
{
u'help_text'
:
u''
,
u'required'
:
True
,
u'help_text'
:
u''
,
u'required'
:
True
,
u'type'
:
u'S
ingle Character
'
,
u'label'
:
'field one'
},
u'type'
:
u'S
tring
'
,
u'label'
:
'field one'
},
'field2'
:
{
'field2'
:
{
u'help_text'
:
u''
,
u'required'
:
True
,
u'help_text'
:
u''
,
u'required'
:
True
,
u'type'
:
u'S
ingle Character
'
,
u'label'
:
'field two'
}})
u'type'
:
u'S
tring
'
,
u'label'
:
'field two'
}})
rest_framework/tests/generics.py
View file @
696c053f
...
@@ -133,7 +133,7 @@ class TestRootView(TestCase):
...
@@ -133,7 +133,7 @@ class TestRootView(TestCase):
#'label': None,
#'label': None,
'read_only'
:
False
,
'read_only'
:
False
,
'required'
:
True
,
'required'
:
True
,
'type'
:
'S
ingle Character
'
,
'type'
:
'S
tring
'
,
},
},
'id'
:
{
'id'
:
{
# TODO add help_text and label when they are available
# TODO add help_text and label when they are available
...
@@ -274,7 +274,7 @@ class TestInstanceView(TestCase):
...
@@ -274,7 +274,7 @@ class TestInstanceView(TestCase):
#'label': None,
#'label': None,
'read_only'
:
False
,
'read_only'
:
False
,
'required'
:
True
,
'required'
:
True
,
'type'
:
'S
ingle Character
'
,
'type'
:
'S
tring
'
,
},
},
'id'
:
{
'id'
:
{
# TODO uncomment label and description when they are
# TODO uncomment label and description when they are
...
...
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