forked from blockcypher/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.py
More file actions
26 lines (22 loc) · 697 Bytes
/
Copy pathadmin.py
File metadata and controls
26 lines (22 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from django.contrib import admin
from emails.models import SentEmail
class SentEmailAdmin(admin.ModelAdmin):
list_display = (
'id',
'sent_at',
'from_email',
'from_name',
'to_email',
'to_name',
'body_template',
'subject',
'auth_user',
'address_subscription',
'transaction_event',
'address_forwarding',
)
list_filter = ('body_template', )
raw_id_fields = ('auth_user', 'address_subscription', 'transaction_event', 'address_forwarding', )
class Meta:
model = SentEmail
admin.site.register(SentEmail, SentEmailAdmin)