app/django/contrib/sites/admin.py
changeset 323 ff1a9aa48cfd
equal deleted inserted replaced
322:6641e941ef1e 323:ff1a9aa48cfd
       
     1 from django.contrib import admin
       
     2 from django.contrib.sites.models import Site
       
     3 
       
     4 
       
     5 class SiteAdmin(admin.ModelAdmin):
       
     6     list_display = ('domain', 'name')
       
     7     search_fields = ('domain', 'name')
       
     8 
       
     9 admin.site.register(Site, SiteAdmin)