Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #4323 -- Added the ability to display author names without email

addresses to RSS 2.0 feeds.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 12771614db6e82a9f6eeb836d963a4c0c1f74f82 1 parent 3c948d4
@malcolmt malcolmt authored
Showing with 3 additions and 0 deletions.
  1. +1 −0  AUTHORS
  2. +2 −0  django/utils/feedgenerator.py
View
1  AUTHORS
@@ -230,6 +230,7 @@ answer newbie questions, and generally made Django that much better:
viestards.lists@gmail.com
Milton Waddams
wam-djangobug@wamber.net
+ wangchun <yaohua2000@gmail.com>
Dan Watson <http://theidioteque.net/>
Chris Wesseling <Chris.Wesseling@cwi.nl>
charly.wilhelm@gmail.com
View
2  django/utils/feedgenerator.py
@@ -168,6 +168,8 @@ def write_items(self, handler):
(item['author_email'], item['author_name']))
elif item["author_email"]:
handler.addQuickElement(u"author", item["author_email"])
+ elif item["author_name"]:
+ handler.addQuickElement(u"dc:creator", item["author_name"], {"xmlns:dc": u"http://purl.org/dc/elements/1.1/"})
if item['pubdate'] is not None:
handler.addQuickElement(u"pubDate", rfc2822_date(item['pubdate']).decode('ascii'))
Please sign in to comment.
Something went wrong with that request. Please try again.