Skip to content

Commit

Permalink
fix getting css_class from self (needet to work with django-crispy-fo…
Browse files Browse the repository at this point in the history
…rms)
  • Loading branch information
PetrDlouhy committed Jul 29, 2017
1 parent ae906b9 commit 1fb0639
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions smart_selects/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def render(self, name, value, attrs=None, choices=()): # noqa: C901
final_choices.append(ch)
self.choices = final_choices

attrs.update(self.attrs)
attrs["data-chainfield"] = chained_field
attrs["data-url"] = url
attrs["data-value"] = "null" if value is None or value == "" else value
Expand Down

0 comments on commit 1fb0639

Please # to comment.