mirror of
https://github.com/ansible/awx.git
synced 2026-05-22 16:27:42 -02:30
Fix configure Tower in Tower to work with updated django-jsonfield.
This commit is contained in:
@@ -426,6 +426,12 @@ class LDAPTeamMapField(fields.DictField):
|
||||
|
||||
class RADIUSSecretField(fields.CharField):
|
||||
|
||||
def run_validation(self, data=empty):
|
||||
value = super(RADIUSSecretField, self).run_validation(data)
|
||||
if isinstance(value, unicode):
|
||||
value = value.encode('utf-8')
|
||||
return value
|
||||
|
||||
def to_internal_value(self, value):
|
||||
value = super(RADIUSSecretField, self).to_internal_value(value)
|
||||
if isinstance(value, unicode):
|
||||
|
||||
Reference in New Issue
Block a user