Django

Code

Ticket #4200 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

get_admin_log template tag returns nothing if no user is specified

Reported by: Bryan Chow <bryan at verdjn dot com> Assigned to: adrian
Milestone: Component: django.contrib.admin
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

The get_admin_log template tag defined in django.contrib.admin returns nothing if no user is specified. Although there are currently no cases in admin where this tag is called without specifying a user, the usage comments for the template tag indicate that this should be supported, and this would be useful for other apps using the tag.

Patch is attached.

Attachments

get_admin_log.patch (0.8 kB) - added by anonymous on 05/02/07 10:20:30.
Fix for get_admin_log template tag

Change History

05/02/07 10:20:30 changed by anonymous

  • attachment get_admin_log.patch added.

Fix for get_admin_log template tag

05/03/07 03:30:13 changed by SmileyChris

  • needs_better_patch changed.
  • stage changed from Unreviewed to Ready for checkin.
  • needs_tests changed.
  • needs_docs changed.

Thanks Bryan

05/07/07 22:56:44 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [5170]) Fixed #4200 -- Made get_admin_log template tag behave according to its docstring (user specifier is optional). Thanks, Bryan Chow.


Add/Change #4200 (get_admin_log template tag returns nothing if no user is specified)




Change Properties
Action