Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

649 B
Raw Blame
from django.contrib import admin
from django.http import HttpRequest

from products.messaging.backend.models.email_hard_bounce import EmailHardBounce


@admin.register(EmailHardBounce)
class EmailHardBounceAdmin(admin.ModelAdmin):
    list_display = ("email", "first_bounced_at", "last_bounced_at")
    ordering = ("-last_bounced_at",)
    search_fields = ("email",)
    readonly_fields = ("email", "first_bounced_at", "last_bounced_at")

    def has_add_permission(self, request: HttpRequest) -> bool:
        return False

    def has_change_permission(self, request: HttpRequest, obj: EmailHardBounce | None = None) -> bool:
        return False