mirror of
https://github.com/django-components/django-components.git
synced 2025-08-07 07:48:00 +00:00
Bug : Relative path in extends
and include
does not work when using template_file (#976)
Co-authored-by: Juro Oravec <juraj.oravec.josefson@gmail.com>
This commit is contained in:
parent
3cf586a974
commit
58d4c78671
3 changed files with 64 additions and 1 deletions
|
@ -737,7 +737,10 @@ class Component(
|
|||
template: Template = cached_template(
|
||||
template_string=template_body,
|
||||
name=self.template_file or self.name,
|
||||
origin=Origin(name=self.template_file or get_import_path(self.__class__)),
|
||||
origin=Origin(
|
||||
name=self.template_file or get_import_path(self.__class__),
|
||||
template_name=self.template_file or self.name,
|
||||
),
|
||||
)
|
||||
else:
|
||||
template = template_body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue