Closed Rastopapola closed 2 years ago
I just discovered the following issue and related pull request, which is the origin of the above mentioned code snippet https://github.com/yourlabs/django-autocomplete-light/pull/1186
It looks like this has been changed on a recent version of dal
which is not installed by default as the most current version by pip
: https://github.com/yourlabs/django-autocomplete-light/issues/1267
@jpic If I see this correctly, an update on at least 3.9.0-rc1 would be required to solve this whole issue?
It should have been str(result)
indeed!
Should be fixed in 3.9.1 thanks to @OmenApps
django-autocomplete-light 3.8.2
Hi everyone,
first of all: I love your work on this package so much! It makes my life - and surely that of a lot of other people - a lot easier!
Now let's get to the real stuff.
Background
I always used
Select2QuerySetView
as my default base class for different autocomplete functionalities. In my current project, I need to provide parent-child info of selectable data, so a user is able to see directly which entry belongs to which parent topic. Straight forward.Select2GroupQuerySetView
Since I knew you are using
Select2
and theoptgroup
html tag provides grouping of choices as well, there had to be a grouping view somewhere. Since this case might be a little more special, I couldn't find it on the documentation, but succeeded on your source code.So far so good. But there is one thing, that is not explained on the source code and neither on the documentation. It's this part, that leaves me head scratching:
Who and what is
descricao
? Since this attribute is mandatory on the provided choice models, I had to workaround like thisQuestion
What is descricao and where can I find more information on this in the docs?
Thanks a lot!