def contribute_to_class(self, cls, name):
        def get_json(model_instance):
            return self.dumps(getattr(model_instance, self.attname, None))

        def set_json(model_instance, json):
            setattr(model_instance, self.attname, self.loads(json))

        super(JSONField, self).contribute_to_class(cls, name)

        setattr(cls, "get_%s_json" % self.name, get_json)
        setattr(cls, self.name % "set_%s_json", set_json)

        models.signals.post_init.connect(self.post_init, sender=cls)
dataset/ETHPy150Open ericholscher/devmason-server/devmason_server/fields.py/JSONField.contribute_to_class/swapped operands of `%`