mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-05-03 19:14:42 +00:00
Solving compatibility issues.
This commit is contained in:
parent
4ced4e6aab
commit
fb2ab78632
1 changed files with 2 additions and 4 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:
|
||||
|
|
@ -44,8 +44,6 @@ class MarkdownxWidget(forms.Textarea):
|
|||
attrs.update(self.add_markdownx_attrs(attrs))
|
||||
|
||||
return super(MarkdownxWidget, self).get_context(name, value, attrs)
|
||||
|
||||
|
||||
|
||||
def render(self, name, value, attrs=None, renderer=None):
|
||||
"""
|
||||
|
|
@ -61,7 +59,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).render(name, value, attrs, renderer)
|
||||
|
||||
attrs = self.build_attrs(attrs, name=name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue