mirror of
https://github.com/django-components/django-components.git
synced 2025-08-08 00:07:59 +00:00
fix: Fix bug where JS and CSS were missing when {% component %}
tag was inside {% include %}
tag (#1300)
* fix: Fix bug where JS and CSS were missing when `{% component %}` tag was inside `{% include %}` tag * refactor: fix mypy error
This commit is contained in:
parent
672811b8b4
commit
81c0d419b4
10 changed files with 170 additions and 12 deletions
|
@ -2277,7 +2277,7 @@ class Component(metaclass=ComponentMeta):
|
|||
|
||||
deps_strategy = cast(DependenciesStrategy, default(deps_strategy, "document"))
|
||||
|
||||
self.id = default(id, _gen_component_id, factory=True)
|
||||
self.id = default(id, _gen_component_id, factory=True) # type: ignore[arg-type]
|
||||
self.name = _get_component_name(self.__class__, registered_name)
|
||||
self.registered_name: Optional[str] = registered_name
|
||||
self.args = default(args, [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue