toolshed/backend/hostadmin/admin.py

20 lines
511 B
Python
Raw Normal View History

2023-06-15 18:55:33 +00:00
from django.contrib import admin
2024-03-11 16:37:56 +00:00
from .models import Domain, ImportedIdentifierSets
2023-06-15 18:55:33 +00:00
class DomainAdmin(admin.ModelAdmin):
list_display = ('name', 'owner', 'open_registration')
list_filter = ('name', 'owner', 'open_registration')
admin.site.register(Domain, DomainAdmin)
2024-03-11 16:37:56 +00:00
class ImportedIdentifierSetsAdmin(admin.ModelAdmin):
list_display = ('name', 'hash', 'created_at')
list_filter = ('name', 'hash', 'created_at')
admin.site.register(ImportedIdentifierSets, ImportedIdentifierSetsAdmin)