Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAL widget duplicated on first inline add #154

Open
nlorentz opened this issue Aug 15, 2019 · 6 comments
Open

DAL widget duplicated on first inline add #154

nlorentz opened this issue Aug 15, 2019 · 6 comments
Assignees

Comments

@nlorentz
Copy link

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
Copy link

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
Copy link
Member

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

@fdintino
Copy link
Member

fdintino commented Apr 16, 2020

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

@learning-91
Copy link

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

@MNovruzov
Copy link

Hi! Has anyone solved this problem?

@pasevin
Copy link

pasevin commented Feb 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants