[Django]-Getting error search_products() takes at least 2 arguments (2 given)

4👍

In your definition of search_products you have category_id as a required field, and you are not providing that as an argument when you are calling the method. Provide a default for category_id or pass in the appropriate argument to resolve your issue

Leave a comment