Replies: 4 comments 3 replies
-
See the change notes. Various long deprecated fallbacks from the update to v2 were removed. See the migration guide in the docs to update. |
Beta Was this translation helpful? Give feedback.
-
Hi, thank you for the quick reply. But I am a bit confused. The changelog for 22.1 says that only warnings were removed. So I expected not any impacting changes. I am using Django 4.0.6, djangorestframework 3.13.1 and python 3.9.9 This is my code. Works fine with 21.1, but not with 22.1: Filters.py
Views.py
|
Beta Was this translation helpful? Give feedback.
-
It is not that I am not willing to change my code. I just don´t get what I have to change.
|
Beta Was this translation helpful? Give feedback.
-
I did not see it all the time. I just had to replace "filter_class" with "filterset_class", then everything worked again. Thanks for the support. |
Beta Was this translation helpful? Give feedback.
-
I had a strange problem that the filters in my project where working just fine on my dev system, but not in production.
I took me a while to realize that I had version 21.1 installed on my dev and 22.1 in Prod.
After reversing the production system back to 21.2 everything worked there as well.
The problem was that the filter was not working et all and the API always gave back all objects. Also in the browsable API the filter button was missing. But there was no message complaining about anything.
I tried to lookup the changes from 21.1 to 22.1, but it seem the latest version in this repository is 21.1, while pipy shows 22.1 and 22.1 was installed by pip.
Beta Was this translation helpful? Give feedback.
All reactions