can't use DateTimeField with auto_now
|Reported by:||Owned by:||Adrian Holovaty|
|Severity:||normal||Keywords:||__repr__ DateTimeField auto_now|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
mod_python shows an not very helpful error if a model uses a DateTimeField with auto_now=True which makes it a bit cumbersome to navigate in admin interface. It seems this is raised by the template which says "BlaBla was successfully created. ..." on the top f the page after creating a object and clicking on any of the save buttons.
I would say, at this moment the datetime value is not yet set, which causes this error, but this is only a guess.