Closed bertek41 closed 1 month ago
Hi @bertek41 — you need to reduce this somewhat for me to be able to see what's going on here. I've read it a few times but I'm very much 🤷
Hi, so I went from 22.1 to 24.2 and in my tests when using relation filter it returns 404.
Yes, I get that. But why is the filter failing? You need to dig in to see what's happening there.
Do you have any suggestions where I should start digging?
So... you can look at the filterset's form (for instance) Is it giving you the expected value out of cleaned data? You can put a breakpoint in your filtering methods and see what's actually happening there. And so on. How do you normally debug an issue? Like that.
Looks like django needs name assignment in urls.py
I am not sure if this from django rest framework or this but its filter problem. Filters works in my local but fails in tests.
this works fine but
this fails and prints
Not Found: /
. This is my filters:(brand is foreignkey, _category is integerfield) Also it calls brand_filter method but I don't understand why it prints not found. Do I need to configure something for relation filters?