Skip to content

Commit

Permalink
Merge pull request #441 from Mactory/master
Browse files Browse the repository at this point in the history
PasswordInput: enabling addons in Django 1.11
  • Loading branch information
dyve committed Aug 30, 2018
2 parents bb9ac84 + 8cb87ae commit 99e3d6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap3/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
NumberInput,
EmailInput,
URLInput,
PasswordInput,
)

# Django 1.9 moved SelectDateWidget to django.forms.widget from
Expand Down Expand Up @@ -482,7 +483,7 @@ def wrap_widget(self, html):
def make_input_group(self, html):
if (self.addon_before or self.addon_after) and isinstance(
self.widget,
(TextInput, NumberInput, EmailInput, URLInput, DateInput, Select),
(TextInput, NumberInput, EmailInput, URLInput, DateInput, Select, PasswordInput),
):
before = (
'<span class="{input_class}">{addon}</span>'.format(
Expand Down

0 comments on commit 99e3d6a

Please sign in to comment.