You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the current behavior?
When trying to use a __in filter in a DjangoFilterConnectionField it only works for strings because it tries to split the input.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
It's easy to reproduce in a unit test:
You can change the age_In: 3 input to whatever you can think of ("3", "3,", [3], ["3"]... ) nothing works.
For a string input you can do for example name_In: "Brutus,Mimi" and it will work but for example name_In: "Jojo, the rabbit" does not work because the comma in the name is interpreted as a delimiter.
What is the expected behavior?
Even for strings it should take a list of strings (instead of one string with the input separated by comma... because otherwise it forbids you to use comma in your string) and for other types it should take a list of object of that type.
The text was updated successfully, but these errors were encountered:
Hi. While this correction is welcomed and I think it is better now, this breaks my code that was developed on version 2.13
So please, when you do this kind of API breakage (even if it was wrong in the first place), use a major release number bump. Or at least show a big WARNING when importing the lib or something.
What is the current behavior?
When trying to use a
__in
filter in aDjangoFilterConnectionField
it only works for strings because it tries to split the input.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
It's easy to reproduce in a unit test:
You can change the
age_In: 3
input to whatever you can think of ("3"
,"3,"
,[3]
,["3"]
... ) nothing works.For a string input you can do for example
name_In: "Brutus,Mimi"
and it will work but for examplename_In: "Jojo, the rabbit"
does not work because the comma in the name is interpreted as a delimiter.Even for strings it should take a list of strings (instead of one string with the input separated by comma... because otherwise it forbids you to use comma in your string) and for other types it should take a list of object of that type.
The text was updated successfully, but these errors were encountered: