Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

DeprecationWarning for get_db_prep_save #20

Open
LucasLemanowicz opened this issue Aug 4, 2011 · 4 comments
Open

DeprecationWarning for get_db_prep_save #20

LucasLemanowicz opened this issue Aug 4, 2011 · 4 comments

Comments

@LucasLemanowicz
Copy link

Getting the following DeprecationWarning notices when I run runserver on my Django 1.3 app with the latest version of Gargoyle installed (tried both through pip install and straight from github):

/usr/local/lib/python2.6/dist-packages/django/db/models/fields/subclassing.py:80: DeprecationWarning: A Field class whose get_db_prep_save method hasn't been updated to take a `connection` argument.
  new_class = super(SubfieldBase, cls).__new__(cls, name, bases, attrs)
/usr/local/lib/python2.6/dist-packages/django/db/models/fields/subclassing.py:80: DeprecationWarning: A Field class whose get_db_prep_value method hasn't been updated to take `connection` and `prepared` arguments.
  new_class = super(SubfieldBase, cls).__new__(cls, name, bases, attrs)
@adamcharnock
Copy link

I found this too. I tried to swap in a different django-jsonfield module only to realise that it is actually incompatible (wishful thinking I guess!). Although I realised that after I submitted this pull request.

The long and the short of it is that this looks to be caused by the original django-jsonfield and there is an issue for this already.

@dcramer
Copy link
Collaborator

dcramer commented Sep 14, 2011

I'm open to pulling JSONField into the repo if we cant get it resolved in the 3rd party package

@schinckel
Copy link

I have resolved this in my branch of django-jsonfield.

@ogirardot
Copy link

i had this very same error using gargoyle with django 1.4 (as gargoyle is using django-jsonfield==0.6)
Upgrading to django-jsonfield 0.8.5 seems to have resolved this, and makes (i'll keep this ticket in touch if anything happens) gargoyle compatible with django 1.4

Enjoy :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants