Ticket #2139: django-20060612-redirect-__str__.diff

File django-20060612-redirect-__str__.diff, 511 bytes (added by md@…, 18 years ago)
  • django/contrib/redirects/models.py

    This makes /admin/redirects/redirect/ look sensible.
    
    --Maximillian Dornseif
    
     
    1818        list_filter = ('site',)
    1919        search_fields = ('old_path', 'new_path')
    2020
    21     def __repr__(self):
     21    def __str__(self):
    2222        return "%s ---> %s" % (self.old_path, self.new_path)
Back to Top