Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug: allow forms that have AutoCompleteSelectMultipleField to spe…
…cify its own widget. That way a AutoCompleteSelectMultipleWidget can be specified in the form declaration, along with customizations like placeholder attribute.
- Loading branch information
a24dc27
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest I think this opens it to breaking. the entire app is basically this widget, so if you feel that you have to replace the widget then you've just replaced the app.
if you've replaced the widget, then why not just replace the field ? you would have to do everything manually like set the channel, help text etc.
if its things like extra attributes or classes that you want then it would make better sense to offer an attribute dict that can be used.
already the template can be customized so you can choose to place any html you like.
so I'd like to pass on this addition, but if you want to offer a way to set custom attributes (placeholder would indeed be useful) then I'm quite open to this