mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-16 21:40:24 +00:00
Backwards compatibility issue solved.
This commit is contained in:
parent
9d60c56045
commit
4ced4e6aab
1 changed files with 3 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ class MarkdownxWidget(forms.Textarea):
|
|||
:return:
|
||||
:rtype:
|
||||
"""
|
||||
if not DJANGO_VERSION[:2] >= (1, 11):
|
||||
if not DJANGO_VERSION[:2] < (1, 11):
|
||||
return super(MarkdownxWidget, self).get_context(name, value, attrs)
|
||||
|
||||
if attrs is None:
|
||||
|
|
@ -61,13 +61,13 @@ class MarkdownxWidget(forms.Textarea):
|
|||
:return:
|
||||
:rtype:
|
||||
"""
|
||||
if not DJANGO_VERSION[:2] < (1, 11):
|
||||
if not DJANGO_VERSION[:2] >= (1, 11):
|
||||
return super(MarkdownxWidget, self).render(name, value, attrs, renderer)
|
||||
|
||||
attrs = self.build_attrs(attrs, name=name)
|
||||
attrs.update(self.add_markdownx_attrs(attrs))
|
||||
|
||||
widget = super(MarkdownxWidget, self).render(name, value, attrs, renderer)
|
||||
widget = super(MarkdownxWidget, self).render(name, value, attrs)
|
||||
|
||||
template = get_template('markdownx/widget.html')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue