Code

Opened 7 years ago

Closed 7 years ago

#5410 closed (fixed)

RequestSite needs __unicode__ method

Reported by: bos Owned by: nobody
Component: contrib.syndication Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In django/contrib/sites/models.py, the Site class has a unicode method, but RequestSite doesn't. This causes the default rendering of feeds in a non-multisite install to include a glob of default Python object rendering instead of a URL.

Attachments (1)

unicode-RequestSite.patch (472 bytes) - added by bos 7 years ago.
add unicode method

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by bos

add unicode method

comment:1 Changed 7 years ago by anonymous

  • Has patch set

comment:2 Changed 7 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [6125]) Fixed #5410 -- Added a unicode() method to RequestSite. Thanks, bos

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.