Skip to content

get_db_prep_value method signature mismatch #13

@petrounias

Description

@petrounias

In pickledfield.fields, class PickledObjectField, the method:

def get_db_prep_value(self, value):

needs to have the following signature to be compatible with newer versions of Django:

def get_db_prep_value(self, value, connection, prepared = False):

and you'll want to add the following at the start of the method:

    if prepared:
        return value

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