mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-16 21:40:24 +00:00
Add Python 3.5 support
This commit is contained in:
parent
55d81d7935
commit
37258c47fb
3 changed files with 4 additions and 2 deletions
|
|
@ -1,9 +1,10 @@
|
|||
import os
|
||||
import uuid
|
||||
import StringIO
|
||||
|
||||
|
||||
from django import forms
|
||||
from django.conf import settings
|
||||
from django.utils.six import StringIO
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.core.files.uploadedfile import InMemoryUploadedFile
|
||||
from django.template import defaultfilters as filters
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ from .settings import MARKDOWNX_EDITOR_RESIZABLE
|
|||
class MarkdownxWidget(forms.Textarea):
|
||||
|
||||
def render(self, name, value, attrs=None):
|
||||
if attrs.has_key('class'):
|
||||
if 'class' in attrs.keys():
|
||||
attrs['class'] += ' markdownx-editor'
|
||||
else:
|
||||
attrs.update({'class':'markdownx-editor'})
|
||||
|
|
|
|||
1
setup.py
1
setup.py
|
|
@ -24,6 +24,7 @@ setup(
|
|||
'Topic :: Software Development :: User Interfaces',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: JavaScript',
|
||||
],
|
||||
keywords='django markdown live preview images upload',
|
||||
|
|
|
|||
Loading…
Reference in a new issue