v0.142.3ยค
Refactorยค
-
Component.View.public = True
is 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