v0.142.3ยค
Fixยค
- Fixed compatibility with older versions of django-template-partials. django-components now works with django-template-partials v23.3 and later. (See #1455)
Refactorยค
-
Component.View.public = Trueis now optional.Before, to create component endpoints, you had to set both:
- HTTP handlers on
Component.View Component.View.public = True.
Now, you can set only the HTTP handlers, and the component will be automatically exposed when any of the HTTP handlers are defined.
You can still explicitly expose/hide the component with
Component.View.public = True/False.Before:
class MyTable(Component): class View: public = True def get(self, request): return self.render_to_response() url = get_component_url(MyTable)After:
- HTTP handlers on