Commits

Albert O'Connor  committed 948d070

Fix critical bug where the full tuple value is passed into new_object_from_value.

  • Participants
  • Parent commits b2a1260

Comments (0)

Files changed (1)

File jautocomplete/fields.py

     def to_python(self, value):
         select_value, new_value = value
         if not new_value in EMPTY_VALUES:
-            new_model = self.new_object_from_value(value)
+            new_model = self.new_object_from_value(new_value)
             # Check to make sure it is valid, allow an option function call on the model to initialize
             new_model.save()
             return new_model