1. Sławek Ehlert
  2. django-selectable


Mark Lavin  committed ae1c761

Multiple select should return an iterable even on the empty case. Fixes #51. Thanks Raoul Thill for the report.

  • Participants
  • Parent commits acc150b
  • Branches stable

Comments (0)

Files changed (1)

File selectable/forms/fields.py

View file
     def to_python(self, value):
         if value in EMPTY_VALUES:
-            return None
+            return []
         lookup = self.lookup_class()
         items = []
         for v in value: