django-pluggables icon indicating copy to clipboard operation
django-pluggables copied to clipboard

DeprecationWarning: get_db_prep_lookup

Open airstrike opened this issue 13 years ago • 3 comments

I get these messages with manage.py runserver running trunk (1.3 beta 1 SVN-15564):

C:\django\Lib\site-packages\django\db\models\fields\subclassing.py:80: DeprecationWarning: A Field class whose get_db_prep_lookup method hasn't been updated to take connection and prepared arguments. new_class = super(SubfieldBase, cls).new(cls, name, bases, attrs)

C:\django\Lib\site-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)

grep -irn "get_db_prep_value" . yields:

./utils/picklefield.py:119: def get_db_prep_value(self, value): ./utils/picklefield.py:142: return self.get_db_prep_value(value) ./utils/picklefield.py:150: # The Field model already calls get_db_prep_value before doing the

airstrike avatar Mar 10 '11 16:03 airstrike

Hey Andre,

I have not had time to bring this project in-line with Django 1.3 or with the addition of namespaces in the URL system of Django 1.2 (we added our own namespace solution since it was not available at the time) If you would like to take a stab at fixing these issues and resolving and blockers from this working in Django 1.3 I would happily review a Pull Request. Thanks for the report.

Cheers! Nowell

nowells avatar Mar 12 '11 21:03 nowells

@airstrike can you check if you are still having this with the latest master?

pombredanne avatar Aug 11 '16 13:08 pombredanne

Unfortunately, I haven't used this app in so long I'm afraid it would be impossible to reproduce the issue.

airstrike avatar Aug 29 '16 16:08 airstrike