Commits

Dan Connolly  committed cfb5c80

leave |escape implicit per django 1.0

  • Participants
  • Parent commits d93cf4a

Comments (0)

Files changed (2)

File qfm/templates/accounts.html

 <ul>
 {% for a in accounts %}
 <li>
-  <a href="{%url dm93data.qfm.views.register a.id %}">{{a.name|escape}}</a>
+  <a href="{%url dm93data.qfm.views.register a.id %}">{{a.name}}</a>
 </li>
 {% endfor %}
 </ul>
 
 <div>Account: <select name="acct">
 {% for a in accounts %}
-<option value="{{a.id}}">{{ a.name|escape }}</option>
+<option value="{{a.id}}">{{ a.name }}</option>
 {% endfor %}
 </select>
 </form>

File qfm/templates/register.html

 <!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-  <title>{{account.name|escape}} Register</title>
+  <title>{{account.name}} Register</title>
   <link rel="stylesheet" href="{{ MEDIA_URL }}finance.css" />
 
 	<!-- Source file --> 
 
 </head>
 <body>
-<h1>{{account.name|escape}}</h1>
+<h1>{{account.name}}</h1>
 
 <table cellspacing="0">
 <thead>
  <tr class="trx">
   <td class="dtstart">{{t.date}}</td>
   <td class="vcard" colspan="2">
-   <strong class="fn">{{t.payee|escape}}</strong>
+   <strong class="fn">{{t.payee}}</strong>
   </td>
   <td>&nbsp;</td>
   <td class="amt trx">{{t.amount|floatformat:2}}</td>
  <tr class="split">
   <td>&nbsp;</td>
   <td class="ref">
-{%ifequal s.acct.kind "AL"%}[{{s.acct.name|escape}}]{%endifequal%}{%ifnotequal s.acct.kind "AL"%}{{s.acct.name|escape}}{%endifnotequal%}{%if s.job %}/{{s.job.name|escape}}{%endif%}</td>
-  <td>{{s.memo|default_if_none:""|escape}}</td>
+{%ifequal s.acct.kind "AL"%}[{{s.acct.name}}]{%endifequal%}{%ifnotequal s.acct.kind "AL"%}{{s.acct.name}}{%endifnotequal%}{%if s.job %}/{{s.job.name}}{%endif%}</td>
+  <td>{{s.memo|default_if_none:""}}</td>
   <td>{{s.clr|default_if_none:"&#160;"}}</td>
   <td class="amt">{{s.subtot|floatformat:2}}</td>
  </tr>