fx-private-relay/emails/admin.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 строки
525 B
Python
Исходник Обычный вид История

2019-06-05 17:38:33 +03:00
from django.contrib import admin
from .models import (
DeletedAddress,
DomainAddress,
Profile,
RegisteredSubdomain,
RelayAddress,
Reply,
)
class ReplyAdmin(admin.ModelAdmin):
readonly_fields = ("created_at",)
list_display = ("relay_address", "domain_address", "created_at")
admin.site.register(DeletedAddress)
admin.site.register(Profile)
admin.site.register(RelayAddress)
admin.site.register(DomainAddress)
admin.site.register(Reply, ReplyAdmin)
admin.site.register(RegisteredSubdomain)