Skip to content

DeprecationWarning: get_db_prep_lookup #1

@airstrike

Description

@airstrike

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions