Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

context argument has been removed from the Field.from_db_value() #12

Open
psilva1982 opened this issue Feb 1, 2025 · 0 comments
Open

Comments

@psilva1982
Copy link

Hello,

The ImageCropField type is no longer working as of Django version 3x. The context argument has been removed from the Field.from_db_value() method. The details can be seen in docs. So if you agree, I'd like to contribute this little fix. It would help me a lot to maintain compatibility with some of my legacy systems.

# imagekit_cropper/fields.py

... 
    def from_db_value(self, value, expression, connection, context=None):
        return self.parse_value(value)
...

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

No branches or pull requests

1 participant