smart-selects problem

102 views
Skip to first unread message

Lúcio Henrique

unread,
Sep 2, 2015, 2:06:32 PM9/2/15
to Django Grappelli
Hi!

I'm using django-smart-select to chained FK fields in my model.
It's loaded data, but my select field is like "disabled". Looking at inspector, there is data and nothing different from another "normal" select field.

Someone can help me?

I'm using last version of django-smart-select, django 1.8.2 and grappelli 2.7.1

Thank you

Olivier Dalang

unread,
Sep 24, 2015, 1:46:20 AM9/24/15
to Django Grappelli

Olivier Dalang

unread,
Sep 24, 2015, 1:46:21 AM9/24/15
to Django Grappelli
Hi !

Exact same problem here : the div containoing the link to add a new related entity is displayed in front of the select, so that clicks don't go to the select...
Hiding this block using CSS fixes the problem, but hides the add link too...  
Oddly, it seems that it's the javascript block which causes this problem. When I move the javascript block in the DOM before the select or after the add link block, it displays correctly.
I'll see if it's easy to fix in the code and make a PR if so.

Best,

Olivier

Le mercredi 2 septembre 2015 18:06:32 UTC, Lúcio Henrique a écrit :
Reply all
Reply to author
Forward
0 new messages