theatlantic / django-nested-admin

Django admin classes that allow for nested inlines
http://django-nested-admin.readthedocs.org/
Other
715 stars 99 forks source link

DAL widget duplicated on first inline add #154

Open nlorentz opened 5 years ago

nlorentz commented 5 years ago

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

learning-91 commented 5 years ago

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

fdintino commented 4 years ago

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

fdintino commented 4 years ago

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

learning-91 commented 4 years ago

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

MNovruzov commented 3 years ago

Hi! Has anyone solved this problem?

pasevin commented 3 years ago

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