Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

magic-removal: fixed #1572 -- feedgenerator RSSv2 feeds now support m…

…issing author names (thanks, limodou)

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 924d9e2 commit b00a6c29f92f2de3d19940592200864d7c4bde42 @jacobian jacobian committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 django/utils/
6 django/utils/
@@ -158,9 +158,11 @@ def write_items(self, handler):
handler.addQuickElement(u"description", item['description'])
# Author information.
- if item['author_email'] is not None and item['author_name'] is not None:
- handler.addQuickElement(u"author", u"%s (%s)" % \
+ if item["author_name"] and item["author_email"]:
+ handler.addQuickElement(u"author", "%s (%s)" % \
(item['author_email'], item['author_name']))
+ elif item["author_email"]:
+ handler.addQuickElement(u"author", item["author_email"])
if item['pubdate'] is not None:
handler.addQuickElement(u"pubDate", rfc2822_date(item['pubdate']).decode('ascii'))

0 comments on commit b00a6c2

Please sign in to comment.
Something went wrong with that request. Please try again.