-
Notifications
You must be signed in to change notification settings - Fork 468
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
v2 upgrading instructions incomplete. #229
Comments
It has not changed to my knowledge:
If registering several autocompletes for the same model, it is required to specify the channel names manually:
Which has some dry breaking implications, which is why I have planned to support something like this for 2.0 final:
Suggestions are welcome ! Also, thanks a lot for your feedback, I will study it in detail and see how the docs can be improved. |
OK, it might not have changed, but the upgrading docs are slightly misleading. Because I was using an autocomplete widget before, I had registered my autocomplete without specifying the model. This works fine if you specify the exact autocomplete class to use, but switching to the autocomplete_light.ModelForm didn't work. Perhaps an alternative upgrade route should be added, indicating autocomplete_light.ModelChoiceField or ModelMultipleChoiceField, which worked well for me. |
Yep, I understand what you mean, I just don't have time to update docs right now so please leave this issue open in the mean time. If you have any further question I will find time to answer though. |
Not over yet but some work has been done in b47422d |
I've updated the upgrade docs, please let me know if I missed anything. Thanks a heap for your feedback. |
I'm upgrading from v1.4.7, and tried the upgrade instructions. There is a missing step for ModelForm autocomplete.
autocomplete_light.register() signature has changed - you now need to provide the model as first parameter, at least it you want the autocomplete_light.ModelForm method to work.
For the case of providing multiple autocomplete classes for the same product, the docs seem inadequate too, in the section "Registering the same Autocomplete class for several autocompletes"
It shows how to register more than one, but not how to use them. It seems like for an autocomplete_light.ModelForm, it just uses the last one. It seems like the easiest way is to use autocomplete_light.ChoiceField or MultipleChoiceField
The text was updated successfully, but these errors were encountered: