v0.92 ๐จ๐ข (2024-08-22)ยค
__
__
BREAKING CHANGESยค
Componentclass is no longer a subclass ofView. To configure theViewclass, set theComponent.Viewnested class. HTTP methods likegetorpostcan still be defined directly onComponentclass, andComponent.as_view()internally callsComponent.View.as_view(). (See Modifying the View class)
Featยค
-
The inputs (args, kwargs, slots, context, ...) that you pass to
Component.render()can be accessed from withinget_context_data,get_templateandget_template_nameviaself.input. (See Accessing data passed to the component) -
Typing:
Componentclass supports generics that specify types forComponent.render(See Adding type hints with Generics)