set_translation() takes 3 positional arguments but 4 were given
时间: 2023-10-31 08:31:34 浏览: 161
django报错:add_atr() takes 0 positional arguments but 1 was given
The error "set_translation() takes 3 positional arguments but 4 were given" occurs because you are passing one extra argument to the function set_translation().
The function set_translation() is defined to take three arguments, but you are passing four arguments to it. You need to either modify the function definition to take four arguments or remove the extra argument that you are passing.
Please check your code and make sure that you are passing the correct number of arguments to the set_translation() function.
阅读全文