Which field caused method_save to bomb out?
|Reported by:||garthk||Owned by:||adrian|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If method_save fails whilst trying to call pre_save on a field, it can be tricky to figure out which field caused the problem without wading to exactly the right place in the stack frame or riddling meta\init.py with debugging code. To save everyone the effort, I've got a patch that'll append a descriptive message to the exception's arguments so the errant field name is obvious and easy to find from the last line of the traceback.