Code

Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#19850 closed Bug (fixed)

admin_static templatetag is not using the staticfiles' storage backend url

Reported by: duduklein@… Owned by: jezdez
Component: contrib.admin Version: 1.5-rc-1
Severity: Release blocker Keywords: staticfiles storage backend templatetag
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The admin_static templatetag checks for statifiles app and then imports the appropriate static templatetag.

The issue is that even when staticfiles contrib app is "installed", the templatetag imported is "static" while the one that uses the storage backend is "do_static". In Django 1.4, there was no "do_static" function, only "static",

This is the commit that seems to have broken it.

Attachments (0)

Change History (5)

comment:1 Changed 17 months ago by jezdez

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Severity changed from Normal to Release blocker
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 17 months ago by jezdez

comment:3 Changed 17 months ago by jezdez

  • Owner changed from nobody to jezdez
  • Status changed from new to assigned

comment:4 Changed 17 months ago by Jannis Leidel <jannis@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In c12891e8cd629cc16fc5d22e485b87ca3169df2c:

Fixed #19850 -- Use configured staticfiles storage to find the URL of a static file in the admin.

comment:5 Changed 17 months ago by Jannis Leidel <jannis@…>

In f96dd05542885d9839d4c79639164551e1f01563:

[1.5.X] Fixed #19850 -- Use configured staticfiles storage to find the URL of a static file in the admin.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.