mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
Merge 8c5e1b95b3 into c588e51e83
This commit is contained in:
commit
59afc52e4b
1 changed files with 3 additions and 1 deletions
|
|
@ -60,7 +60,9 @@ class Command(NoArgsCommand):
|
|||
for f in [f for f in filenames
|
||||
if f.endswith(extension) and not f.startswith(".")]:
|
||||
path = os.path.join(dirpath, f)
|
||||
name = path.split(templatedir)[1][1:]
|
||||
name = path.split(templatedir)[1]
|
||||
if name.startswith('/'):
|
||||
name = name[1:]
|
||||
try:
|
||||
t = Template.on_site.get(name__exact=name)
|
||||
except Template.DoesNotExist:
|
||||
|
|
|
|||
Loading…
Reference in a new issue