Skip to content

AutocompleteSelectMultipleFilter compatibility issue with Django 4.2 #1370

Open
@omarraafat14

Description

@omarraafat14

What version of Unfold are you using?
0.57.0

What version of Django are you using?
4.2

What browser are you using?
Edge 136.0.3240.92

Did you checked changelog/commit history, if the bug is not already fixed?
Yes

Did you searched other issues, if the bug is not already fixed?
Yes

Did you checked documentation?
Yes

Are you able to replicate the bug in the demo site?
No, As demo site using Django 5 while I am using Django 4.2

Repository with reproduced bug
https://github.com/omarraafat14/miran-search-api

Describe your issue

The AutocompleteSelectMultipleFilter from unfold.contrib.filters throws an "Enter a list of values" error when used with Django 4.2, while it works correctly with Django 5.x.

Steps to reproduce:

  1. Set up Django 4.2 project with Unfold
  2. Create a model with ManyToManyField relationships
  3. Configure admin with AutocompleteSelectMultipleFilter
  4. Try to use the filter in admin interface

Expected behavior:
The autocomplete filter should work as documented, allowing multiple selection of related objects.

Actual behavior:
Error message "Enter a list of values" appears when trying to use the filter.

Additional context:

  • The same code works perfectly with Django 5.x
  • Regular Django autocomplete fields work fine in Django 4.2
  • Only the Unfold AutocompleteSelectMultipleFilter is affected
  • AutocompleteSelectFilter (single selection) may have the same issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions