[Python-modules-commits] [python-django-extensions] 01/03: Fixed 'Error binding parameter 2' in Django 1.9
Brian May
bam at moszumanska.debian.org
Tue Apr 26 06:40:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
bam pushed a commit to branch master
in repository python-django-extensions.
commit fe22c16e9b097a0c63f88d98511d86f65d996102
Author: Piotr Jarolewski <piotr.jarolewski at allegrogroup.com>
Date: Mon Dec 28 13:47:49 2015 +0100
Fixed 'Error binding parameter 2' in Django 1.9
Source https://github.com/django-extensions/django-extensions/commit/54fe88df801d289882a79824be92d823ab7be33e.patch
Fixes https://github.com/django-extensions/django-extensions/issues/796
---
django_extensions/db/fields/json.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/django_extensions/db/fields/json.py b/django_extensions/db/fields/json.py
index 89eece7..313c6c4 100644
--- a/django_extensions/db/fields/json.py
+++ b/django_extensions/db/fields/json.py
@@ -100,7 +100,8 @@ class JSONField(six.with_metaclass(models.SubfieldBase, models.TextField)):
# run through `dumps`
if not isinstance(value, six.string_types):
value = dumps(value)
- return super(JSONField, self).get_db_prep_save(value, connection=connection, **kwargs)
+
+ return value
def south_field_triple(self):
"""Returns a suitable description of this field for South."""
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-django-extensions.git
More information about the Python-modules-commits
mailing list