Permalink
Browse files

Fixed `add_domain` call to use domain attribute of `current_site` so …

…the function doesn't use the string representation of `current_site`.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent d72ce4f commit 28353a682dcd37ebbf6de886fa0f0e4719c53166 @gdub gdub committed Jan 31, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 django/contrib/syndication/feeds.py
View
3 django/contrib/syndication/feeds.py
@@ -82,7 +82,8 @@ def get_feed(self, url=None):
link = link,
description = self.__get_dynamic_attr('description', obj),
language = settings.LANGUAGE_CODE.decode(),
- feed_url = add_domain(current_site, self.__get_dynamic_attr('feed_url', obj)),
+ feed_url = add_domain(current_site.domain,
+ self.__get_dynamic_attr('feed_url', obj)),
author_name = self.__get_dynamic_attr('author_name', obj),
author_link = self.__get_dynamic_attr('author_link', obj),
author_email = self.__get_dynamic_attr('author_email', obj),

0 comments on commit 28353a6

Please sign in to comment.