mirror of
https://github.com/django-components/django-components.git
synced 2025-10-04 11:14:39 +00:00
refactor: allow to call Component.inject() outside of render (#1414)
This commit is contained in:
parent
1578996b21
commit
b3ea50572d
13 changed files with 614 additions and 236 deletions
|
@ -161,6 +161,9 @@ class ComponentView(ExtensionComponentConfig, View):
|
|||
ComponentExtension.ComponentConfig.__init__(self, component)
|
||||
View.__init__(self, **kwargs)
|
||||
|
||||
# TODO_v1 - Remove. Superseded by `component_cls`. This was used for backwards compatibility.
|
||||
self.component = component
|
||||
|
||||
@property
|
||||
def url(self) -> str:
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue