Permalink
Browse files

Fixed _has_changed in the widget.

  • Loading branch information...
1 parent c5677fd commit c47babdd7484394d68dfeb98c3923c6a6197f2ed @jpic jpic committed May 11, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 cities_light/widgets.py
View
@@ -22,3 +22,7 @@ def decompress(self, value):
def value_from_datadict(self, data, files, name):
values = super(CityAutocompleteWidget, self).value_from_datadict(data, files, name)
return values[1]
+
+ def _has_changed(self, initial, data):
+ # we want multiwidget for rendering, but simple for data
+ return forms.Widget._has_changed(self, initial, data)

0 comments on commit c47babd

Please sign in to comment.