django-test/env/lib/python3.8/site-packages/django/contrib/sites/admin.py

9 lines
214 B
Python
Raw Permalink Normal View History

2022-08-26 10:41:18 +00:00
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")