Skip to content

Commit

Permalink
Ported a fix from Django
Browse files Browse the repository at this point in the history
  • Loading branch information
brutasse committed Feb 14, 2013
1 parent 4b78571 commit 9057139
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions floppyforms/widgets.py
Expand Up @@ -399,6 +399,9 @@ def value_from_datadict(self, data, files, name):
return value

def _has_changed(self, initial, data):
if initial == 'False':
# show_hidden_initial may have transformed False to 'False'
initial = False
return bool(initial) != bool(data)


Expand Down

0 comments on commit 9057139

Please sign in to comment.