johnamdickson / portfolio-project-5

1 stars 1 forks source link

BUG: Querying categories in product detail #31

Closed johnamdickson closed 8 months ago

johnamdickson commented 8 months ago

Epic:

Products & Categories: Filtering, Sorting and Searching #15 **Bug Description:** Whilst attempting to add functionality to search categories along with product name and descriptions using q, the following error was returned: *Related Field got invalid lookup: icontains* **Actions to Resolve:** The icontains lookup notation requires double underscores after the foreign key name as opposed to dot notation. Solution found in stack overflow