Django3にしたら from_db_value() missing 1 required positional argument: 'context' が出る
Django
2019-12-25 06:14 (6 years ago)

TypeError
from_db_value() missing 1 required positional argument: 'context'
が出る場合
Django3では、モデルフィールドの from_db_value の引数が
def from_db_value(self, value, expression, connection, context):
から
def from_db_value(self, value, expression, connection):
に変更された。
そのため、context を引数に取る関数は修正が必要。
私は、social_django( social-auth-app-django ) の古いバージョンで出てしまっていた。
まだ評価がありません
著者は、アプリケーション開発会社 Cyberneura を運営しています。
開発相談をお待ちしています。
開発相談をお待ちしています。