app/django/contrib/sites/admin.py
author Lennard de Rijk <ljvderijk@gmail.com>
Thu, 17 Sep 2009 22:05:42 +0200
changeset 2943 8086f6562353
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Fixed error in mentor field cleaning, the list of mentors was never resolved.

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)