Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

magic-removal: Fixed #1485 -- Made admin template updates for changes…

… to LogEntry model. Thanks, Christopher Lenz

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2515 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0690229a3b73919000396374b12f9b568f1fba66 1 parent 0d9ab72
Adrian Holovaty authored March 13, 2006
2  django/contrib/admin/templates/admin/index.html
@@ -57,7 +57,7 @@
57 57
             {% else %}
58 58
             <ul class="actionlist">
59 59
             {% for entry in admin_log %}
60  
-                <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">{% if not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr|escape }}{% if not entry.is_deletion %}</a>{% endif %}<br /><span class="mini quiet">{{ entry.get_content_type.name|capfirst }}</span></li>
  60
+                <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">{% if not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr|escape }}{% if not entry.is_deletion %}</a>{% endif %}<br /><span class="mini quiet">{{ entry.content_type.name|capfirst }}</span></li>
61 61
             {% endfor %}
62 62
             </ul>
63 63
             {% endif %}
2  django/contrib/admin/templates/admin/object_history.html
@@ -24,7 +24,7 @@
24 24
         {% for action in action_list %}
25 25
         <tr>
26 26
             <th>{{ action.action_time|date:_("DATE_WITH_TIME_FULL") }}</th>
27  
-            <td>{{ action.get_user.username }}{% if action.get_user.first_name %} ({{ action.get_user.first_name }} {{ action.get_user.last_name }}){% endif %}</td>
  27
+            <td>{{ action.user.username }}{% if action.user.first_name %} ({{ action.user.first_name }} {{ action.user.last_name }}){% endif %}</td>
28 28
             <td>{{ action.change_message}}</td>
29 29
         </tr>
30 30
         {% endfor %}

0 notes on commit 0690229

Please sign in to comment.
Something went wrong with that request. Please try again.