Part of djust 1.3 — read the 1.3 release notes.
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.