2008-07-19 07:54:34 +08:00
|
|
|
from django.contrib import admin
|
|
|
|
from django.contrib.sites.models import Site
|
|
|
|
|
|
|
|
|
|
|
|
class SiteAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('domain', 'name')
|
|
|
|
search_fields = ('domain', 'name')
|
|
|
|
|
2013-10-11 04:42:30 +08:00
|
|
|
admin.site.register(Site, SiteAdmin)
|