Commits

Karen Tracey committed fea4430

Quick fix to decompress to recognize data coming from value_from_datadict and not decompress again. Better may be to standardize to a list format at a higher level, but that requires a bit more thought. This works for now.

Comments (0)

Files changed (1)

selectable/forms/widgets.py

         self.widgets[0].update_query_parameters(qs_dict)
 
     def decompress(self, value):
+        if value and isinstance(value, list) and len(value) == 2 and isinstance(value[1], list):
+            return value
         if value:
             if not hasattr(value, '__iter__'):
                 value = [value]
         self.widgets[0].update_query_parameters(qs_dict)
 
     def decompress(self, value):
+        if value and isinstance(value, list) and len(value) == 2 and isinstance(value[1], list):
+            return value
         if value:
             if not hasattr(value, '__iter__'):
                 value = [value]