Skip to content

Commit

Permalink
fixing import error for pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
maximz committed Feb 5, 2016
1 parent 680d82f commit 69ef95b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course_selection/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from fdfgen import forge_fdf

from django.template import Template, loader
from django.template.loader import find_template, LoaderOrigin
from django.template.loader import get_template as gtl, LoaderOrigin


class PdfTemplateError(Exception):
Expand Down Expand Up @@ -88,7 +88,7 @@ def fake_strict_errors(exception):
# Ignore UnicodeError, due to PDF file read
codecs.register_error('strict', fake_strict_errors)
# --//--
template, origin = find_template(template_name)
template = gtl(template_name)
# Loading hacks
codecs.register_error('strict', strict_errors)
# --//--
Expand Down

0 comments on commit 69ef95b

Please sign in to comment.