Django admin allows filtering using the field lookups such as "in", but it is impossible to include a value that contains a comma
|Reported by:||aruseni||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
The admin site allows you to filter the queryset in the changelist in a plenty of different ways. Notably, it allows you to filter the records by multiple values (if the field's value is one of the specified value options, then such record is considered matching).
For example, you can test it with a query string like this:
Unfortunately, there is a big limitation at the moment: you can't include a value option that contains a comma (or a few).
The function that splits the string is prepare_lookup_value, found in contrib.admin.util.
Change History (7)
comment:1 Changed 3 years ago by aruseni
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset