The modified attribute no longer has a default value.

This allows for templates using {% if article.modified %}
instead of {% if article.modified != article.published %} .
This commit is contained in:
Florian Jacob 2013-11-17 23:40:11 +01:00
commit bd9d1b9539
54 changed files with 115 additions and 251 deletions

View file

@ -113,8 +113,6 @@ class Content(object):
if hasattr(self, 'date'):
self.locale_date = strftime(self.date, self.date_format)
if not hasattr(self, 'modified'):
self.modified = self.date
if hasattr(self, 'modified'):
self.locale_modified = strftime(self.modified, self.date_format)