X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e0de41ae1e67c230ad1e67f34f6f4f76e53d7234..8e7ed6210507c648358a936028fff70a28db0626:/apps/sponsors/fields.py?ds=inline diff --git a/apps/sponsors/fields.py b/apps/sponsors/fields.py index 26effc541..b3fa36124 100644 --- a/apps/sponsors/fields.py +++ b/apps/sponsors/fields.py @@ -8,6 +8,7 @@ from django.conf import settings from django.db import models from django import forms from django.utils import simplejson as json +from south.modelsinspector import add_introspection_rules class JSONEncoder(json.JSONEncoder): @@ -62,3 +63,5 @@ class JSONField(models.TextField): def set_value(model_instance, json): return setattr(model_instance, self.attname, dumps(json)) setattr(cls, 'set_%s_value' % self.name, set_value) + +add_introspection_rules([], [r"^sponsors\.fields\.JSONField"])