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
|
|
|
|
2015-08-31 08:00:39 +08:00
|
|
|
@admin.register(Redirect)
|
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}
|