mirror of
https://github.com/django-components/django-components.git
synced 2025-07-23 00:05:01 +00:00
Convert a single line long string to multi-line to pass flake8
This commit is contained in:
parent
0648ad9a93
commit
b5414d4920
1 changed files with 2 additions and 1 deletions
|
@ -139,7 +139,8 @@ class Component(metaclass=SimplifiedInterfaceMediaDefiningClass):
|
||||||
|
|
||||||
if hasattr(self, "template"):
|
if hasattr(self, "template"):
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
f"{self.__class__.__name__}: `template` method is deprecated, set `template_name` or override `get_template_name` instead",
|
f"{self.__class__.__name__}: `template` method is deprecated, \
|
||||||
|
set `template_name` or override `get_template_name` instead",
|
||||||
DeprecationWarning,
|
DeprecationWarning,
|
||||||
)
|
)
|
||||||
template_name = self.template(context)
|
template_name = self.template(context)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue