s/Single Character/String/

This commit is contained in:
Oscar Vilaplana 2013-05-19 15:04:43 +02:00
parent f1f5f92d89
commit 696c053f4f
3 changed files with 5 additions and 5 deletions

View File

@ -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',

View File

@ -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'}})

View File

@ -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