Changeset 8215 for django/branches/gis/django/contrib/redirects
- Timestamp:
- 08/05/08 12:15:33 (4 months ago)
- Files:
-
- django/branches/gis (modified) (1 prop)
- django/branches/gis/django/contrib/redirects/admin.py (copied) (copied from django/trunk/django/contrib/redirects/admin.py)
- django/branches/gis/django/contrib/redirects/models.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis
- Property svnmerge-integrated changed from /django/trunk:1-7978 to /django/trunk:1-8214
django/branches/gis/django/contrib/redirects/models.py
r7979 r8215 19 19 def __unicode__(self): 20 20 return "%s ---> %s" % (self.old_path, self.new_path) 21 22 # Register the admin options for these models.23 # TODO: Maybe this should live in a separate module admin.py, but how would we24 # ensure that module was loaded?25 26 from django.contrib import admin27 28 class RedirectAdmin(admin.ModelAdmin):29 list_display = ('old_path', 'new_path')30 list_filter = ('site',)31 search_fields = ('old_path', 'new_path')32 radio_fields = {'site': admin.VERTICAL}33 34 admin.site.register(Redirect, RedirectAdmin)35
