mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
s/Single Character/String/
This commit is contained in:
parent
f1f5f92d89
commit
696c053f4f
|
@ -33,7 +33,7 @@ from rest_framework.settings import api_settings
|
|||
|
||||
HUMANIZED_FIELD_TYPES = {
|
||||
'BooleanField': u'Boolean',
|
||||
'CharField': u'Single Character',
|
||||
'CharField': u'String',
|
||||
'ChoiceField': u'Single Choice',
|
||||
'ComboField': u'Single Choice',
|
||||
'DateField': u'Date',
|
||||
|
|
|
@ -885,7 +885,7 @@ class HumanizedSerializer(TestCase):
|
|||
self.assertEqual(humanized, {
|
||||
'field1': {
|
||||
u'help_text': u'', u'required': True,
|
||||
u'type': u'Single Character', u'label': 'field one'},
|
||||
u'type': u'String', u'label': 'field one'},
|
||||
'field2': {
|
||||
u'help_text': u'', u'required': True,
|
||||
u'type': u'Single Character', u'label': 'field two'}})
|
||||
u'type': u'String', u'label': 'field two'}})
|
||||
|
|
|
@ -133,7 +133,7 @@ class TestRootView(TestCase):
|
|||
#'label': None,
|
||||
'read_only': False,
|
||||
'required': True,
|
||||
'type': 'Single Character',
|
||||
'type': 'String',
|
||||
},
|
||||
'id': {
|
||||
# TODO add help_text and label when they are available
|
||||
|
@ -274,7 +274,7 @@ class TestInstanceView(TestCase):
|
|||
#'label': None,
|
||||
'read_only': False,
|
||||
'required': True,
|
||||
'type': 'Single Character',
|
||||
'type': 'String',
|
||||
},
|
||||
'id': {
|
||||
# TODO uncomment label and description when they are
|
||||
|
|
Loading…
Reference in New Issue
Block a user