app/django/contrib/sites/admin.py
author Lennard de Rijk <ljvderijk@gmail.com>
Sun, 25 Oct 2009 21:47:25 -0700
changeset 3057 966bbe3e204d
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Changed the access checks in the GSoC module to match the new checks.

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)