toolshed/backend/hostadmin/admin.py

12 lines
258 B
Python
Raw Permalink Normal View History

2023-06-15 18:55:33 +00:00
from django.contrib import admin
from .models import Domain
class DomainAdmin(admin.ModelAdmin):
list_display = ('name', 'owner', 'open_registration')
list_filter = ('name', 'owner', 'open_registration')
admin.site.register(Domain, DomainAdmin)