Fix issue when string list settings field is null. Resolves #3683.

This commit is contained in:
Chris Church
2016-10-12 14:47:22 -04:00
parent 2488e1e3f0
commit 8883738a7c
3 changed files with 10 additions and 5 deletions

View File

@@ -20,8 +20,14 @@ logger = logging.getLogger('awx.conf.fields')
class StringListField(ListField):
child = CharField()
def to_representation(self, value):
if value is None and self.allow_null:
return None
return super(StringListField, self).to_representation(value)
class URLField(CharField):