88from pulpcore .plugin .util import get_domain
99
1010from pulp_python .app import models as python_models
11- from pulp_python .app import fields
1211from pulp_python .app .utils import artifact_to_python_content_data
1312
1413
@@ -158,7 +157,7 @@ class PythonPackageContentSerializer(core_serializers.SingleArtifactContentUploa
158157 required = False , allow_blank = True ,
159158 help_text = _ ('A browsable URL for the project and a label for it, separated by a comma.' )
160159 )
161- project_urls = fields . JSONObjectField (
160+ project_urls = serializers . JSONField (
162161 required = False , default = dict ,
163162 help_text = _ ('A dictionary of labels and URLs for the project.' )
164163 )
@@ -171,28 +170,28 @@ class PythonPackageContentSerializer(core_serializers.SingleArtifactContentUploa
171170 required = False , allow_blank = True ,
172171 help_text = _ ('Field to specify the OS and CPU for which the binary package was compiled. ' )
173172 )
174- requires_dist = fields . JSONObjectField (
173+ requires_dist = serializers . JSONField (
175174 required = False , default = list ,
176175 help_text = _ ('A JSON list containing names of some other distutils project '
177176 'required by this distribution.' )
178177 )
179- provides_dist = fields . JSONObjectField (
178+ provides_dist = serializers . JSONField (
180179 required = False , default = list ,
181180 help_text = _ ('A JSON list containing names of a Distutils project which is contained'
182181 ' within this distribution.' )
183182 )
184- obsoletes_dist = fields . JSONObjectField (
183+ obsoletes_dist = serializers . JSONField (
185184 required = False , default = list ,
186185 help_text = _ ('A JSON list containing names of a distutils project\' s distribution which '
187186 'this distribution renders obsolete, meaning that the two projects should not '
188187 'be installed at the same time.' )
189188 )
190- requires_external = fields . JSONObjectField (
189+ requires_external = serializers . JSONField (
191190 required = False , default = list ,
192191 help_text = _ ('A JSON list containing some dependency in the system that the distribution '
193192 'is to be used.' )
194193 )
195- classifiers = fields . JSONObjectField (
194+ classifiers = serializers . JSONField (
196195 required = False , default = list ,
197196 help_text = _ ('A JSON list containing classification values for a Python package.' )
198197 )
0 commit comments