X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d5da2664b063711aee28851f41062e3666963fb3..dc572f022673aa80b64126371675a710b58e953d:/apps/sponsors/fields.py?ds=inline diff --git a/apps/sponsors/fields.py b/apps/sponsors/fields.py index 678788e75..b3fa36124 100644 --- a/apps/sponsors/fields.py +++ b/apps/sponsors/fields.py @@ -1,10 +1,14 @@ -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import datetime 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): @@ -59,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"])