#1260 closed defect (invalid)
can't use DateTimeField with auto_now
Description ¶
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.
Change History (2)
comment:1 by , 19 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 19 years ago
Summary: | can't use DateTimeField with auto_now=True together with __repr__ → can't use DateTimeField with auto_now |
---|
Note:
See TracTickets
for help on using tickets.
Please reopen if this is still a problem.