From a1f2f64a09fdbccd3206b94bdf57ca00969783a3 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Tue, 15 Nov 2016 13:56:54 -0500 Subject: [PATCH] change JSONField to be a DB text type --- awx/main/fields.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/main/fields.py b/awx/main/fields.py index 91f59bab8a..306c9570e9 100644 --- a/awx/main/fields.py +++ b/awx/main/fields.py @@ -32,6 +32,9 @@ __all__ = ['AutoOneToOneField', 'ImplicitRoleField', 'JSONField'] class JSONField(upstream_JSONField): + def db_type(self, connection): + return 'text' + def from_db_value(self, value, expression, connection, context): if value in {'', None} and not self.null: return {}