mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
do not server error if this value is None
This commit is contained in:
parent
ea900b6f95
commit
4f65b283df
@ -839,6 +839,6 @@ class OAuth2ClientSecretField(models.CharField):
|
||||
)
|
||||
|
||||
def from_db_value(self, value, expression, connection, context):
|
||||
if value.startswith('$encrypted$'):
|
||||
if value and value.startswith('$encrypted$'):
|
||||
return decrypt_value(get_encryption_key('value', pk=None), value)
|
||||
return value
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user