Source

django-selectable / selectable / forms / widgets.py

Diff from to

File selectable/forms/widgets.py

         value = ['', value]
         return super(AutoCompleteSelectMultipleWidget, self).render(name, value, attrs)
 
+    def _has_changed(self, initial, data):
+        """"
+        Decects if the widget was changed. This is removed in 1.6.
+
+        For the multi-select case we only care if the hidden inputs changed.
+        """
+        initial = ['', initial]
+        data = ['', data]
+        return super(AutoCompleteSelectMultipleWidget, self)._has_changed(initial, data)
+
+
 
 class AutoComboboxSelectMultipleWidget(SelectableMultiWidget, SelectableMediaMixin):
 
         value = ['', value]
         return super(AutoComboboxSelectMultipleWidget, self).render(name, value, attrs)
 
+    def _has_changed(self, initial, data):
+        """"
+        Decects if the widget was changed. This is removed in 1.6.
+
+        For the multi-select case we only care if the hidden inputs changed.
+        """
+        initial = ['', initial]
+        data = ['', data]
+        return super(AutoComboboxSelectMultipleWidget, self)._has_changed(initial, data)