Skip to content

Commit

Permalink
Update widgets.py
Browse files Browse the repository at this point in the history
Avoid to have "None" as initial value in the input
  • Loading branch information
Benbb96 authored Jan 31, 2020
1 parent edab738 commit c2caf90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion address/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def render(self, name, value, attrs=None, **kwargs):
elems = [
super(AddressWidget, self).render(
name,
escape(ad.get('formatted', None)),
escape(ad.get('formatted', '')),
attrs,
**kwargs
)
Expand Down

0 comments on commit c2caf90

Please sign in to comment.