What steps will reproduce the problem?
1. Create page, publish it
2. Change status back to draft
2. Use get_calculated_status function
Page.save sets publication_date to None if page is draft but
get_calculated_status uses it to compare against datetime.now():
if settings.PAGE_SHOW_START_DATE:
if self.publication_date > datetime.now():
return self.DRAFT
quick fix would be to add check if publication_date is None or not.
Original issue reported on code.google.com by mikko.si...@gmail.com on 7 May 2009 at 1:33
Original issue reported on code.google.com by
mikko.si...@gmail.com
on 7 May 2009 at 1:33