Django3にしたら from_db_value() missing 1 required positional argument: 'context' が出る

投稿者: ytyng 4年, 3ヶ月 前

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 ) の古いバージョンで出てしまっていた。

現在未評価

コメント

アーカイブ

2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011