Repository navigation
v1.3.2
Documentation
- What a custom filter or tag receives for a model is pinned and documented (#3949). No djust entry hands custom code a live Django instance:
DjustTemplateBackendandrender_templatehand a floor proxy, a LiveView hands a plaindict, and the two still differ (aQuerySetpassed whole reaches a filter and a tag differently on the backend, and the keys of a LiveViewdictfollow what the rest of the template names).python/tests/test_custom_callable_model_argument_3949.pyrecords the type each entry hands a custom filter,simple_tag,simple_tag ... as,inclusion_tag,takes_contexttag and a Django-library tag reached through{% load %}, for a model, a list, aQuerySet, a loop variable and adictholding models, and the floor that holds on every entry (passwordand a field named indjust_exclude_fieldsare never present, as a value or as a key). The new section "What a custom filter or tag receives for a model" indocs/website/core-concepts/templates.mdshows the table and the guidance to pass the field rather than the model. No behaviour changes. Unifying the entries is tracked in #3949 and #3936 for 1.4.0.
What's Changed
- docs: pin and document what a custom filter or tag receives for a model (#3949) by @johnrtipton in #3954
- docs(adr): accept the ADR-027 render-time handle overlay for 1.4.0 (#3949, #3936) by @johnrtipton in #3957
Full Changelog: v1.3.1...v1.3.2