django-bootstrap-datepicker-plus
                                
                                 django-bootstrap-datepicker-plus copied to clipboard
                                
                                    django-bootstrap-datepicker-plus copied to clipboard
                            
                            
                            
                        Set the addon_icon_class context on the widget key
Purpose
This PR addresses an issue where the picker icons are not showing in the latest version (5.0.5) of django-bootstrap-datepicker-plus when using a custom MultiWidget input with DatePickerInput and TimePickerInput. This issue was originally raised in this GitHub issue.
Approach
This change fixes the missing picker icons by adjusting the context returned by BasePickerInput. Specifically, it modifies the context dictionary to correctly pass the addon_icon_class to the widget template.
Issues solved in this PR
- [x] Missing picker icons in custom MultiWidgetinput.
What has Changed
- Adjusted _base.pyto ensure theaddon_icon_classis passed correctly in the context.
- Updated the input.htmltemplate to usewidget.addon_icon_classinstead ofaddon_icon_class.