9 lines
214 B
Python
9 lines
214 B
Python
from django.contrib import admin
|
|
from django.contrib.sites.models import Site
|
|
|
|
|
|
@admin.register(Site)
|
|
class SiteAdmin(admin.ModelAdmin):
|
|
list_display = ('domain', 'name')
|
|
search_fields = ('domain', 'name')
|