Browse Source

Fixed issue with CSS in PDF render (again)

pull/160/head
Mike Olund 8 years ago
parent
commit
f2d2faacc0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      edivorce/apps/core/middleware/bceid_middleware.py

+ 1
- 1
edivorce/apps/core/middleware/bceid_middleware.py View File

@ -78,7 +78,7 @@ class BceidMiddleware(object):
# allow requests for static assets to bypass the proxy
# (this is needed so WeasyPrint can request CSS)
if request.path.startswith(settings.STATIC_URL):
if request.path.startswith(settings.FORCE_SCRIPT_NAME[:-1] + settings.STATIC_URL):
return True
bcgov_network = ip_network(settings.BCGOV_NETWORK)


Loading…
Cancel
Save