from django.contrib import admin
from django_stored_email.models import EMail, EMailAlternative


class EMailAlternativeInline(admin.TabularInline):
    model = EMailAlternative
    extra = 1


class EMailAdmin(admin.ModelAdmin):
    readonly_fields = ('sent', 'queued')
    list_display = ('subject', 'from_email', 'to_emails', 'sent')
    inlines = [EMailAlternativeInline,]


admin.site.register(EMail, EMailAdmin)

13d323fcb0c988bcd4ce02c2f5e4c81f9aa56fce
<mask token>


class EMailAlternativeInline(admin.TabularInline):
    <mask token>
    <mask token>


class EMailAdmin(admin.ModelAdmin):
    readonly_fields = 'sent', 'queued'
    list_display = 'subject', 'from_email', 'to_emails', 'sent'
    inlines = [EMailAlternativeInline]


<mask token>

<mask token>


class EMailAlternativeInline(admin.TabularInline):
    model = EMailAlternative
    extra = 1


class EMailAdmin(admin.ModelAdmin):
    readonly_fields = 'sent', 'queued'
    list_display = 'subject', 'from_email', 'to_emails', 'sent'
    inlines = [EMailAlternativeInline]


<mask token>

<mask token>


class EMailAlternativeInline(admin.TabularInline):
    model = EMailAlternative
    extra = 1


class EMailAdmin(admin.ModelAdmin):
    readonly_fields = 'sent', 'queued'
    list_display = 'subject', 'from_email', 'to_emails', 'sent'
    inlines = [EMailAlternativeInline]


admin.site.register(EMail, EMailAdmin)

from django.contrib import admin
from django_stored_email.models import EMail, EMailAlternative


class EMailAlternativeInline(admin.TabularInline):
    model = EMailAlternative
    extra = 1


class EMailAdmin(admin.ModelAdmin):
    readonly_fields = 'sent', 'queued'
    list_display = 'subject', 'from_email', 'to_emails', 'sent'
    inlines = [EMailAlternativeInline]


admin.site.register(EMail, EMailAdmin)

from django.contrib import admin
from django_stored_email.models import EMail, EMailAlternative


class EMailAlternativeInline(admin.TabularInline):
    model = EMailAlternative
    extra = 1


class EMailAdmin(admin.ModelAdmin):
    readonly_fields = ('sent', 'queued')
    list_display = ('subject', 'from_email', 'to_emails', 'sent')
    inlines = [EMailAlternativeInline,]


admin.site.register(EMail, EMailAdmin)
