Ticket #2139: django-20060612-redirect-__str__.diff
File django-20060612-redirect-__str__.diff, 511 bytes (added by , 18 years ago) |
---|
-
django/contrib/redirects/models.py
This makes /admin/redirects/redirect/ look sensible. --Maximillian Dornseif
18 18 list_filter = ('site',) 19 19 search_fields = ('old_path', 'new_path') 20 20 21 def __ repr__(self):21 def __str__(self): 22 22 return "%s ---> %s" % (self.old_path, self.new_path)