diff mysite/templates/admin/band/email.html @ 24:ead7bd49c9e0 django1.3

Changes to support Django 1.3
author Brian Neal <bgneal@gmail.com>
date Tue, 29 Mar 2011 01:51:10 +0000
parents 0dcfcdf50c62
children
line wrap: on
line diff
--- a/mysite/templates/admin/band/email.html	Mon Mar 28 03:20:29 2011 +0000
+++ b/mysite/templates/admin/band/email.html	Tue Mar 29 01:51:10 2011 +0000
@@ -1,7 +1,8 @@
 {% extends 'admin/base_site.html' %}
+{% load adminmedia %}
 {% block title %}The Madeira | Mailing List Email Form{% endblock %}
 {% block extrastyle %}
-<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}django/css/forms.css" />
+<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
 {% endblock %}
 {% block bodyclass %}change-form{% endblock %}
 {% block breadcrumbs %}
@@ -13,7 +14,7 @@
 <h1>Madeira Mailing List Email Form</h1>
 <div id="content-main">
 <p>Use this form to send an email to all subscribers of the The Madeira mailing list.</p>
-<form method="post" action="{{ request.build_absolute_uri }}">
+<form method="post" action="{{ request.build_absolute_uri }}">{% csrf_token %}
 <div>
 <fieldset class="module aligned">
       {% for field in form %}