django-nested-admin icon indicating copy to clipboard operation
django-nested-admin copied to clipboard

DAL widget duplicated on first inline add

Open nlorentz opened this issue 6 years ago • 6 comments

Django: 2.2.4 django_nested_admin: 3.2.3 / commit 1386805 django-autocomplete-light: 3.4.1

I was having the same issue as #151 and downloaded the fix in 1386805, which fixes the issue of the first nested inline that gets added having a non-functional autocomplete field.

With django-autocomplete-light (DAL), an additional, non-functional Select2 autocomplete field is rendered on the first nested inline that's added.

This issue existed in addition to #151, before and after applying commit 1386805.

extra-field

nlorentz avatar Aug 15 '19 18:08 nlorentz

I have the same issue on Select2 fields (both Foreign Key fields & ManyToMany).

When I save the data, the Select2 fields are shown correctly, but when I add new items (before save) they are not.

See attached screenshot, red arrows show the saved items and the blue arrow shows the new items: https://take.ms/LUuck

learning-91 avatar Oct 10 '19 08:10 learning-91

@learning-91 are those the built-in django admin select2 fields, or are you using another package for those?

fdintino avatar Apr 15 '20 15:04 fdintino

Sorry, to clarify my question: which dal package are you using? dal_select2?

fdintino avatar Apr 16 '20 15:04 fdintino

Hi.. Sorry for the delay.. I have this: django-select2==7.1.1

learning-91 avatar May 05 '20 14:05 learning-91

Hi! Has anyone solved this problem?

MNovruzov avatar Oct 21 '20 15:10 MNovruzov

I'm getting the same issue with django autocomplete_fields. Happens with both NestedTabularInline and NestedStackedInline

pasevin avatar Feb 15 '21 18:02 pasevin