2019-06-05 17:38:33 +03:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2021-08-13 18:41:15 +03:00
|
|
|
from .models import (
|
2021-10-23 23:28:54 +03:00
|
|
|
DeletedAddress,
|
|
|
|
DomainAddress,
|
|
|
|
Profile,
|
|
|
|
RegisteredSubdomain,
|
|
|
|
RelayAddress,
|
|
|
|
Reply,
|
2021-08-13 18:41:15 +03:00
|
|
|
)
|
2019-06-05 23:32:59 +03:00
|
|
|
|
|
|
|
|
2021-08-13 18:41:15 +03:00
|
|
|
class ReplyAdmin(admin.ModelAdmin):
|
2021-09-21 19:44:46 +03:00
|
|
|
readonly_fields = ("created_at",)
|
2021-10-23 23:28:54 +03:00
|
|
|
list_display = ("relay_address", "domain_address", "created_at")
|
2021-08-13 18:41:15 +03:00
|
|
|
|
|
|
|
|
2021-09-21 19:44:46 +03:00
|
|
|
admin.site.register(DeletedAddress)
|
|
|
|
admin.site.register(Profile)
|
|
|
|
admin.site.register(RelayAddress)
|
|
|
|
admin.site.register(DomainAddress)
|
2021-08-13 18:41:15 +03:00
|
|
|
admin.site.register(Reply, ReplyAdmin)
|
2021-10-23 23:28:54 +03:00
|
|
|
admin.site.register(RegisteredSubdomain)
|