Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#14778 closed (wontfix)

{load} for all child templates

Reported by: mtsachev Owned by: nobody
Component: Template system Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

It would be nice if {load} worked for all child templates that used {extend} for the parent.

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by lrekucki

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

comment:2 Changed 3 years ago by mtsachev

But this renders the custom filters/tags completely useless. It might make more sense to add custom filters as middleware in this case.

comment:3 Changed 3 years ago by lukeplant

It's difficult to see how this renders custom filters/tags "useless".

It makes very good sense that a 'load' command should affect only the current template. If for example, a parent template deliberately loads a new filter/tag to override a builtin (like with the {% load url from future %} which is recommended for Django 1.3), then it would be a bad thing if this propagated down to child templates which may not have been updated for this change.

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.