You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

admin.py 214B

12345678
  1. from django.contrib import admin
  2. from django.contrib.sites.models import Site
  3. @admin.register(Site)
  4. class SiteAdmin(admin.ModelAdmin):
  5. list_display = ('domain', 'name')
  6. search_fields = ('domain', 'name')