filter_fields should be renamed to filterset_fields - #74
Conversation
|
What do you think? Could this soon be integrated? I'd very much appreciate 🙏 |
|
Yes, you are right The changes proposed look extensive but I am worried about external apps using the result of the exporters and the renames there. For now, I have released |
If this fixes the compatibility issue with current |
I don't understand what you exactly mean by this |
Then I guess you are happy ;-)
yes, I am thinking about those but not only. With the change in 3.0.1 the compatibility with django-filters (whichever version) is guaranteed and the meta data format also stays the same for those who would have written custom exporters and/or rely on the format of exporters in the implementation of client application that rely on that data |
|
Yeah, then I will check this out. Many thanks for integrating this change. |
|
You are welcome. I am keeping this PR open for now for further thinking on how to better reconcile the 2 naming conventions (something that will probably stay compatible with both way) |
|
I think there's the same problem with filter_class -> filterset_class as I can not get |
|
@asmaps Yes, you are right, 3.0.6 should fix that issue |
Because
filter_fieldsare no longer supported in the latest version of thedjango-filterpackage we should change thefilter_fieldstofilterset_fields. For backward compatibility we can allowfilter_fieldsas a possible class variable but we need to convert it internally tofilterset_fields.Thank you for integrating this change.