| author | ymh <ymh.work@gmail.com> |
| Wed, 20 Jan 2010 00:34:04 +0100 | |
| changeset 0 | 0d40e90630ef |
| permissions | -rw-r--r-- |
| 0 | 1 |
|
2 |
from django.contrib import admin |
|
3 |
from django.contrib.redirects.models import Redirect |
|
4 |
||
5 |
class RedirectAdmin(admin.ModelAdmin): |
|
6 |
list_display = ('old_path', 'new_path') |
|
7 |
list_filter = ('site',) |
|
8 |
search_fields = ('old_path', 'new_path') |
|
9 |
radio_fields = {'site': admin.VERTICAL} |
|
10 |
||
11 |
admin.site.register(Redirect, RedirectAdmin) |