Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop-SweetProcess-django-2.1-compat' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sv0 committed Sep 10, 2018
2 parents d73bcf4 + b8f368c commit 28678a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_markdown/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ class MarkdownWidget(forms.Textarea):
def __init__(self, attrs=None):
super(MarkdownWidget, self).__init__(attrs)

def render(self, name, value, attrs=None):
def render(self, name, value, attrs=None, renderer=None):
""" Render widget.
:returns: A rendered HTML
"""
html = super(MarkdownWidget, self).render(name, value, attrs)
html = super(MarkdownWidget, self).render(name, value, attrs, renderer)
attrs = self.build_attrs(attrs)
html += editor_js_initialization("#%s" % attrs['id'])
return mark_safe(html)
Expand Down

0 comments on commit 28678a5

Please sign in to comment.