@@ -105,29 +105,25 @@ class PythonPackageContentSerializer(platform.ContentSerializer):
105105 required = False , allow_blank = True ,
106106 help_text = _ ('Field to specify the OS and CPU for which the binary package was compiled. ' )
107107 )
108- requires_dist = serializers .ListField (
109- child = serializers .CharField (),
110- required = False , default = [],
111- help_text = _ ('List containing names of some other distutils project '
108+ requires_dist = serializers .CharField (
109+ required = False , default = "[]" ,
110+ help_text = _ ('A JSON list containing names of some other distutils project '
112111 'required by this distribution.' )
113112 )
114- provides_dist = serializers .ListField (
115- child = serializers .CharField (),
116- required = False , default = [],
117- help_text = _ ('List containing names of a Distutils project which is contained'
113+ provides_dist = serializers .CharField (
114+ required = False , default = "[]" ,
115+ help_text = _ ('A JSON list containing names of a Distutils project which is contained'
118116 ' within this distribution.' )
119117 )
120- obsoletes_dist = serializers .ListField (
121- child = serializers .CharField (),
122- required = False , default = [],
123- help_text = _ ('List containing names of a distutils project\' s distribution which this '
118+ obsoletes_dist = serializers .CharField (
119+ required = False , default = "[]" ,
120+ help_text = _ ('A JSON list containing names of a distutils project\' s distribution which this '
124121 'distribution renders obsolete, meaning that the two projects should not '
125122 'be installed at the same time.' )
126123 )
127- requires_external = serializers .ListField (
128- child = serializers .CharField (),
129- required = False , default = [],
130- help_text = _ ('List containing some dependency in the system that the distribution '
124+ requires_external = serializers .CharField (
125+ required = False , default = "[]" ,
126+ help_text = _ ('A JSON list containing some dependency in the system that the distribution '
131127 'is to be used.' )
132128 )
133129 classifiers = ClassifierSerializer (
@@ -166,10 +162,9 @@ class PythonImporterSerializer(platform.ImporterSerializer):
166162 A Serializer for PythonImporter.
167163 """
168164
169- projects = serializers .ListField (
170- child = serializers .CharField (),
165+ projects = serializers .CharField (
171166 required = True ,
172- help_text = _ ('A list of project names to sync.' )
167+ help_text = _ ('A JSON list of project names to sync.' )
173168 )
174169
175170 class Meta :
0 commit comments