2008-07-22 00:01:05 +08:00
|
|
|
from django.contrib import admin
|
|
|
|
from django.contrib.redirects.models import Redirect
|
|
|
|
|
2013-10-11 04:42:30 +08:00
|
|
|
|
2008-07-22 00:01:05 +08:00
|
|
|
class RedirectAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('old_path', 'new_path')
|
|
|
|
list_filter = ('site',)
|
|
|
|
search_fields = ('old_path', 'new_path')
|
|
|
|
radio_fields = {'site': admin.VERTICAL}
|
|
|
|
|
2013-10-11 04:42:30 +08:00
|
|
|
admin.site.register(Redirect, RedirectAdmin)
|