django-pluggables
django-pluggables copied to clipboard
DeprecationWarning: get_db_prep_lookup
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
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
@airstrike can you check if you are still having this with the latest master?
Unfortunately, I haven't used this app in so long I'm afraid it would be impossible to reproduce the issue.