我需要在保存模型之前修改一些值:
@receiver( pre_save )
def model_pre_save( sender, instance, *args, **kwargs ):
print instance.path # prints "old_path"
instance.path = some_path()
print instance.path # prints "new_path"
但保存instance.path
后仍然等于"old_path"
。