toolshed/backend/hostadmin/admin.py
jedi 8cf0897ec5
All checks were successful
continuous-integration/drone/push Build is passing
make dataset parsing more robust
2024-03-16 19:58:22 +01:00

19 lines
511 B
Python

from django.contrib import admin
from .models import Domain, ImportedIdentifierSets
class DomainAdmin(admin.ModelAdmin):
list_display = ('name', 'owner', 'open_registration')
list_filter = ('name', 'owner', 'open_registration')
admin.site.register(Domain, DomainAdmin)
class ImportedIdentifierSetsAdmin(admin.ModelAdmin):
list_display = ('name', 'hash', 'created_at')
list_filter = ('name', 'hash', 'created_at')
admin.site.register(ImportedIdentifierSets, ImportedIdentifierSetsAdmin)