Changeset 3122
- Timestamp:
- 06/12/06 11:20:05 (2 years ago)
- Files:
-
- django/trunk/django/contrib/redirects/models.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/redirects/models.py
r2809 r3122 9 9 new_path = models.CharField(_('redirect to'), maxlength=200, blank=True, 10 10 help_text=_("This can be either an absolute path (as above) or a full URL starting with 'http://'.")) 11 11 12 class Meta: 12 13 verbose_name = _('redirect') … … 15 16 unique_together=(('site', 'old_path'),) 16 17 ordering = ('old_path',) 18 17 19 class Admin: 18 20 list_filter = ('site',) 19 21 search_fields = ('old_path', 'new_path') 20 22 21 def __ repr__(self):23 def __str__(self): 22 24 return "%s ---> %s" % (self.old_path, self.new_path)
