1. Luke Plant
  2. django

Commits

utr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed f909b27

[full-history]
* Added a few propreties to templates to display by default.

  • Participants
  • Parent commits 8d4878d
  • Branches full-history

Comments (0)

Files changed (2)

File django/contrib/history/templates/history/detail.html

View file
  • Ignore whitespace
 {% if change %}
 <h3>ChangeLog</h3>
+{% comment %}
 <table border="1px">
 <thead>
 <tr>
 {% endfor %}
 </tbody>
 </table>
+{% endcomment %}
 
-<h3>{{ object }}</h3>
+<h3>{{ object }}</h3>{% comment %}
 <table border="1px">
 <thead>
 <tr>
 {% endfor %}
 </tbody>
 </table>
-
+{% endcomment %}
 
 <ul>
 <li>ID: {{ change.id }}</li>
 <li>PID: {{ change.object_id }}</li>
+<li>Parent: {{ change.parent.id }}</li>
 <li>UID: {{ change.user_id }}</li>
 <li>Type: {{ change.content_type }}</li>
 <li>Change time: {{ change.change_time }}</li>

File django/contrib/history/templates/history/list.html

View file
  • Ignore whitespace
 <table border="1">
 <tr>
 <td>ID:</td>
-<td>PID:</td> 
+<td>PID:</td>
+<td>PaID:</td>
 <td>Change time:</td>
 <td>Type:</td>
 <td>Ch:</td>
 <tr>
 <td><a href="detail/{{ change.id }}/">{{ change.id }}</td>
 <td>{{ change.object_id }}</td>
+<td>{{ change.parent.id }}</td>
 <td>{{ change.change_time }}</td>
 <td>{{ change.content_type }}</td>
 <td>{{ change.change_type }}</td>