Skip to content

Commit

Permalink
Merge pull request #361 from goodtune/issue-360
Browse files Browse the repository at this point in the history
Fixes #360
  • Loading branch information
bernardopires committed Aug 21, 2016
2 parents 12775be + 1a48f6c commit 2bcacb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tenant_schemas/template_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def get_template_sources(template_name, template_dirs=None):
for template_dir in template_dirs:
try:
if '%s' in template_dir:
yield safe_join(template_dir % connection.tenant.schema_name, template_name)
yield safe_join(template_dir % connection.tenant.domain_url, template_name)
else:
yield safe_join(template_dir, connection.tenant.schema_name, template_name)
yield safe_join(template_dir, connection.tenant.domain_url, template_name)
except UnicodeDecodeError:
# The template dir name was a bytestring that wasn't valid UTF-8.
raise
Expand Down

0 comments on commit 2bcacb6

Please sign in to comment.