app/django/contrib/sites/admin.py
author Mario Ferraro <fadinlight@gmail.com>
Mon, 07 Sep 2009 15:07:37 +0200
changeset 2872 7d5c8039fbe2
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Added Shrinksafe code to shrink JS files before deploy.

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)