1. Albert O'Connor
  2. django-jautocomplete


Albert O'Connor  committed 948d070

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

  • Participants
  • Parent commits b2a1260
  • Branches default

Comments (0)

Files changed (1)

File jautocomplete/fields.py

View file
     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
             return new_model