From: Matías Aguirre Date: Sat, 22 Oct 2011 01:57:13 +0000 (-0200) Subject: South migration code for JSONField. Refs gh-57 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0ad3a4d35619e6922f15b933c4cd7b8e14963140;p=django-social-auth.git South migration code for JSONField. Refs gh-57 --- 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