From 4ce74c2efc2e2d9ac913ece5710ce6913ceb5942 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sat, 19 Nov 2016 17:18:16 +0100 Subject: [PATCH] fix template overriding --- jdav_web/mailer/admin.py | 1 + jdav_web/mailer/templates/{admin => mailer}/change_form.html | 0 2 files changed, 1 insertion(+) rename jdav_web/mailer/templates/{admin => mailer}/change_form.html (100%) diff --git a/jdav_web/mailer/admin.py b/jdav_web/mailer/admin.py index d434cb3..a5913bb 100644 --- a/jdav_web/mailer/admin.py +++ b/jdav_web/mailer/admin.py @@ -9,6 +9,7 @@ from .models import Message class MessageAdmin(admin.ModelAdmin): """Message creation view""" list_display = ('subject', 'from_addr', 'to_group', 'sent') + change_form_template = "mailer/change_form.html" actions = ['send_message'] diff --git a/jdav_web/mailer/templates/admin/change_form.html b/jdav_web/mailer/templates/mailer/change_form.html similarity index 100% rename from jdav_web/mailer/templates/admin/change_form.html rename to jdav_web/mailer/templates/mailer/change_form.html