Changes between Version 50 and Version 51 of BackwardsIncompatibleChanges
- Timestamp:
- Nov 27, 2005, 8:51:19 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BackwardsIncompatibleChanges
v50 v51 400 400 401 401 New way: 402 403 402 {{{ 404 403 from django.core import template … … 424 423 register.inclusion_tag('path/to/template')(func) 425 424 }}} 425 426 426 === Change template tags that use filters === 427 427 … … 430 430 Old way: 431 431 {{{ 432 433 432 class SomethingNode(Node): 434 433 def __init__(self, filter_string): … … 445 444 446 445 register_tag('something', do_something) 447 448 446 }}} 449 447 450 448 New way: 451 449 {{{ 452 453 450 class SomethingNode(Node): 454 451 def __init__(self, filter_expr): … … 471 468 472 469 === Templates === 473 Templates that are included in another template using {%include%} or {%ssi%} must explicitly {%load%} all libraries they need for their tags and filters. Some templates may have worked in the past due to previous requests registering tags : this will no longer work. 470 471 Templates that are included in another template using {{{{% include %}}}} or {{{{% ssi %}}}} must explicitly {{{{% load %}}}} all libraries they need for their tags and filters. Some templates may have worked in the past due to previous requests registering tags : this will no longer work.