app/django/contrib/sites/admin.py
author Lennard de Rijk <ljvderijk@gmail.com>
Sun, 05 Jul 2009 12:57:09 +0200
changeset 2546 df7e4291c23c
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Ensure that accessViolations for Survey menu items get captured. (Also ensure that you think before committing something you broke yourself :()

from django.contrib import admin
from django.contrib.sites.models import Site


class SiteAdmin(admin.ModelAdmin):
    list_display = ('domain', 'name')
    search_fields = ('domain', 'name')

admin.site.register(Site, SiteAdmin)