Commit 28353a68 authored by Gary Wilson Jr's avatar Gary Wilson Jr
Browse files

Fixed `add_domain` call to use domain attribute of `current_site` so the...

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
parent d72ce4f2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -82,7 +82,8 @@ class Feed(object):
            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),