gintas / django-picklefield

A pickled object field for Django
MIT License
180 stars 47 forks source link

Django 2.0: from_db_value() context parameter facing deprecation #33

Closed akx closed 5 years ago

akx commented 6 years ago

When testing with Django 2.0, there's a warning

RemovedInDjango30Warning: Remove the context parameter from PickledObjectField.from_db_value(). Support for it will be removed in Django 3.0.

The Django ticket tracking the removal is 28730. The commit adding this deprecation warning is https://github.com/django/django/commit/487362fa8f23d41de4db58e7408e66eb36399af0.

Removing the parameter altogether might break compatibility with old Django versions, so some crafty class construction might be necessary.

charettes commented 5 years ago

That was fixed by #39.