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

@ -54,7 +54,7 @@ class Writer(object):
description=item.get_content(self.site_url),
categories=item.tags if hasattr(item, 'tags') else None,
author_name=getattr(item, 'author', ''),
pubdate=set_date_tzinfo(item.modified,
pubdate=set_date_tzinfo(item.modified if hasattr(item, 'modified') else item.date,
self.settings.get('TIMEZONE', None)))
def _open_w(self, filename, encoding, override=False):