Skip to content

Commit

Permalink
Fix template loader
Browse files Browse the repository at this point in the history
  • Loading branch information
hipek8 committed Oct 9, 2024
1 parent 53a9043 commit 1798517
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ralph/lib/template/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from os.path import abspath, dirname, join

from django.apps import apps
from django.template import Origin
from django.template.loader import TemplateDoesNotExist
from django.template.loaders.base import Loader as BaseLoader

Expand Down Expand Up @@ -59,4 +60,4 @@ def get_template_path(self, template_name):

def get_template_sources(self, template_name):
filepath = self.get_template_path(template_name)
return filepath,
yield Origin(name=filepath, template_name=template_name, loader=self)

0 comments on commit 1798517

Please sign in to comment.