from_db_value() missing 1 required positional argument: 'context'
When this error appears
In Django 3, the arguments for the model field's from_db_value method have been changed from:
def from_db_value(self, value, expression, connection, context):
to
def from_db_value(self, value, expression, connection):
Therefore, any function that takes context as an argument needs to be revised.
I encountered this issue with an older version of social_django (social-auth-app-django).
Comments