PageRenderTime 10ms CodeModel.GetById 7ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/redirects/admin.py

https://code.google.com/p/mango-py/
Python | 11 lines | 8 code | 3 blank | 0 comment | 0 complexity | 8f84814e3e49b72499c4d1a39737ac0c MD5 | raw file
 1
 2from django.contrib import admin
 3from django.contrib.redirects.models import Redirect
 4
 5class 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
11admin.site.register(Redirect, RedirectAdmin)