Ticket #1485: django_1485.diff

File django_1485.diff, 2.0 KB (added by Christopher Lenz <cmlenz@…>, 9 years ago)

Fixes to admin templates related to LogEntry

  • django/contrib/admin/templates/admin/object_history.html

     
    2424        {% for action in action_list %}
    2525        <tr>
    2626            <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.get_full_name %} ({{ action.user.get_full_name }}){% endif %}</td>
    2828            <td>{{ action.change_message}}</td>
    2929        </tr>
    3030        {% endfor %}
  • django/contrib/admin/templates/admin/index.html

     
    5757            {% else %}
    5858            <ul class="actionlist">
    5959            {% 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>
    6161            {% endfor %}
    6262            </ul>
    6363            {% endif %}
Back to Top