+class ContactEmailSentInline(admin.TabularInline):
+ model = models.EmailSent
+ fields = ['timestamp', 'template', 'subject']
+ readonly_fields = ['timestamp', 'template', 'subject']
+ extra = 0
+ can_delete = False
+ show_change_link = True
+
+ def has_add_permission(self, request, obj):
+ return False
+
+