mirror of
https://github.com/ansible/awx.git
synced 2026-09-04 10:58:29 -02:30
Fix configure Tower in Tower to work with updated django-jsonfield.
This commit is contained in:
@@ -33,8 +33,6 @@ __all__ = ['AutoOneToOneField', 'ImplicitRoleField', 'JSONField']
|
||||
class JSONField(upstream_JSONField):
|
||||
|
||||
def from_db_value(self, value, expression, connection, context):
|
||||
if value in ['', None]:
|
||||
return {}
|
||||
return super(JSONField, self).from_db_value(value, expression, connection, context)
|
||||
|
||||
# Based on AutoOneToOneField from django-annoying:
|
||||
|
||||
Reference in New Issue
Block a user