Commits

Matthew Schinckel committed 63ee358

We need to set 'field' as well as 'field_id' on a related object?

  • Participants
  • Parent commits bd65f0f

Comments (0)

Files changed (1)

File rest_api/options.py

                         setattr(instance, field.attname, field.to_python(value))
                         #TODO: set the changed value to the __unicode__ of the referenced object,
                         # but this will require another database request for each change.
-                    else:
-                        setattr(instance, key, field.to_python(value))
+                    setattr(instance, key, field.to_python(value))
                     changed[key] = value
             except FieldDoesNotExist:
                 # There was no field. There may be an attribute, that alters