Django

Code

Changeset 7051

Show
Ignore:
Timestamp:
01/31/08 16:33:50 (10 months ago)
Author:
gwilson
Message:

Fixed add_domain call to use domain attribute of current_site so the function doesn't use the string representation of current_site.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/syndication/feeds.py

    r7050 r7051  
    8383            description = self.__get_dynamic_attr('description', obj), 
    8484            language = settings.LANGUAGE_CODE.decode(), 
    85             feed_url = add_domain(current_site, self.__get_dynamic_attr('feed_url', obj)), 
     85            feed_url = add_domain(current_site.domain, 
     86                                  self.__get_dynamic_attr('feed_url', obj)), 
    8687            author_name = self.__get_dynamic_attr('author_name', obj), 
    8788            author_link = self.__get_dynamic_attr('author_link', obj),