TypeError: get_month_sales_by_id() takes 0 positional arguments but 1 was given
时间: 2024-06-05 18:06:50 浏览: 90
django报错:add_atr() takes 0 positional arguments but 1 was given
This error message means that you are calling a function called `get_month_sales_by_id()` with one argument, but the function definition does not expect any arguments.
To fix this error, you need to check the function definition and make sure that it accepts one argument. If it does not, you need to remove the argument when calling the function. Alternatively, if you need to pass an argument to the function, you need to modify the function definition to accept the argument.
阅读全文