Changes between Version 1 and Version 2 of Ticket #911
- Timestamp:
- Nov 26, 2005, 8:58:31 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #911 – Description
v1 v2 17 17 {{{ 18 18 register.tag('name', func) 19 register.filter('name', func , False)19 register.filter('name', func) # No has_arg, see below 20 20 }}} 21 21 In tags, resolve_variable_with_filters is gone. … … 43 43 }}} 44 44 for those. 45 46 Filters can now have default arguments, and whether they have an argument is inferred from the signature. So any 45 47 46 Will upload patch after updating to take account of new-admin merge. 48 {{{ 49 def filter_func(obj, _): 50 }}} 51 52 should be changed to 53 54 {{{ 55 def filter_func(obj): 56 }}} 57 58 and the has_arg function is no longer accepted or useful. 59 Filter arguments can be also now be variables which are resolved in the context as well as constant strings.