django-codemod icon indicating copy to clipboard operation
django-codemod copied to clipboard

Codemodder: remove `context` argument of `Field.from_db_value()` and `Expression.convert_value()`

Open browniebroke opened this issue 5 years ago • 0 comments

Description

From Django 2.0 release notes:

The context argument of Field.from_db_value() and Expression.convert_value() is unused as it’s always an empty dictionary.

The signature of both methods is now:

(self, value, expression, connection)

instead of:

(self, value, expression, connection, context)

We could probably update the usages of these methods.

This is removed in Django 3.0.

browniebroke avatar Jun 19 '20 17:06 browniebroke