django-nested-admin
django-nested-admin copied to clipboard
With django-autocomplete-light, select2 autocomplete field reverts to select-box after inline drag-drop
After an inline drag and drop, django-autocomplete-light select2 autocomplete field will revert to select-box interface (<select>). This does not happen with django ModelAdmin.autocomplete_fields
django-autocomplete-light==3.8.2 django-nested-admin==3.4.0
Before

After drag and drop
Further trials with autocomplete widget on:
- Django==3.2.11
- django-autocomplete-light==3.8.2
- django-nested-admin==3.4.0
| Action | ModelAdmin.autocomplete_fields | django-autocomplete-light |
|---|---|---|
| add first inline row | widget duplicated; see https://github.com/theatlantic/django-nested-admin/issues/154#issue-481266637 | no issue |
| drag and drop | no issue | widget reverts to select-box; see above |
@kygoh I also ran into this issue, I have a PR up with django-autocomplete-light to fix this. https://github.com/yourlabs/django-autocomplete-light/pull/1309