Skip to content

Commit

Permalink
Merge pull request #6 from pmontepagano/main
Browse files Browse the repository at this point in the history
Check if url has been set in Page model
  • Loading branch information
donhauser authored Sep 14, 2021
2 parents a64d181 + 8818ae4 commit 37b5aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtail_pdf_view/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def __init__(self, *args, **kwargs):
name = route_args[0]

url = self.url
if not url.endswith('/'):
if url and not url.endswith('/'):
url += '/'

setattr(self, "url_"+key, url+self.reverse_subpage(name))
Expand Down

0 comments on commit 37b5aa9

Please sign in to comment.