Skip to content

Commit 0b871ff

Browse files
luordgone
authored andcommitted
Got pattern library working
1 parent 5677888 commit 0b871ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pattern_library/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ class DTLTemplateRenderer:
256256
def get_pattern_source(template):
257257
return escape(template.template.source)
258258

259-
@staticmethod
260-
def get_template_ancestors(template_name, context=None, ancestors=None):
259+
@classmethod
260+
def get_template_ancestors(cls, template_name, context=None, ancestors=None):
261261
"""
262262
Returns a list of template names, starting with provided name
263263
and followed by the names of any templates that extends until
@@ -290,8 +290,8 @@ def get_pattern_source(template):
290290
source = escape(f.read())
291291
return source
292292

293-
@staticmethod
294-
def get_template_ancestors(template_name, context=None, ancestors=None):
293+
@classmethod
294+
def get_template_ancestors(cls, template_name, context=None, ancestors=None):
295295
"""
296296
Returns a list of template names, starting with provided name
297297
and followed by the names of any templates that extends until

0 commit comments

Comments
 (0)