Skip to content

v0.142.3ยค

Refactorยค

  • Component.View.public = True is now optional.

    Before, to create component endpoints, you had to set both:

    1. HTTP handlers on Component.View
    2. 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:

    class MyTable(Component):
        class View:
            def get(self, request):
                return self.render_to_response()
    
    url = get_component_url(MyTable)