Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #9 from BrianHicks/patch-1

Remove double slash in form media
  • Loading branch information...
commit 16f9f7c3c658e5b06cb70f059e05d97aaf09aef3 2 parents 106eb62 + 1f02063
Timmy O'Mahony authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 pagedown/widgets.py
View
6 pagedown/widgets.py
@@ -12,9 +12,9 @@ class Media:
css = {
'all': ('pagedown/demo/browser/demo.css',)
}
- js = ('%s/pagedown/Markdown.Converter.js' % settings.STATIC_URL,
- '%s/pagedown/Markdown.Sanitizer.js' % settings.STATIC_URL,
- '%s/pagedown/Markdown.Editor.js' % settings.STATIC_URL,)
+ js = ('%s/pagedown/Markdown.Converter.js' % settings.STATIC_URL.rstrip('/'),
+ '%s/pagedown/Markdown.Sanitizer.js' % settings.STATIC_URL.rstrip('/'),
+ '%s/pagedown/Markdown.Editor.js' % settings.STATIC_URL.rstrip('/'),)
def render(self, name, value, attrs=None):
if value is None:
Please sign in to comment.
Something went wrong with that request. Please try again.