From 0ad3a4d35619e6922f15b933c4cd7b8e14963140 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Aguirre?= Date: Fri, 21 Oct 2011 23:57:13 -0200 Subject: [PATCH] South migration code for JSONField. Refs gh-57 --- social_auth/fields.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/social_auth/fields.py b/social_auth/fields.py index 283afee..73cf386 100644 --- a/social_auth/fields.py +++ b/social_auth/fields.py @@ -45,3 +45,10 @@ class JSONField(models.TextField): def value_to_string(self, obj): """Return value from object converted to string properly""" return smart_unicode(self.get_prep_value(self._get_val_from_obj(obj))) + + +try: + from south.modelsinspector import add_introspection_rules + add_introspection_rules([], ["^social_auth\.fields\.JSONField"]) +except: + pass -- 2.39.5