Drop depedency on django select2

This commit is contained in:
Iacopo Spalletti 2015-06-28 18:34:33 +02:00
parent 8a0fcf87c6
commit e5413ff6fc
4 changed files with 8 additions and 13 deletions

View file

@ -20,7 +20,6 @@ HELPER_SETTINGS = {
'easy_thumbnails',
'djangocms_text_ckeditor',
'cmsplugin_filer_image',
'django_select2',
'taggit_autosuggest',
],
'LANGUAGE_CODE': 'en',

View file

@ -1,18 +1,17 @@
# -*- coding: utf-8 -*-
from django import forms
from django.conf import settings
import django_select2
from parler.forms import TranslatableModelForm
from taggit_autosuggest.widgets import TagAutoSuggest
from .models import Post
class LatestEntriesForm(forms.ModelForm):
class Meta:
widgets = {
'tags': django_select2.Select2MultipleWidget
}
def __init__(self, *args, **kwargs):
super(LatestEntriesForm, self).__init__(*args, **kwargs)
self.fields['tags'].widget = TagAutoSuggest('taggit.Tag')
class Media:
css = {

View file

@ -49,7 +49,6 @@ setup(
'cmsplugin-filer',
'django-meta>=0.2',
'django-meta-mixin>=0.1.1',
'django-select2>4.3',
],
license="BSD",
zip_safe=False,

10
tox.ini
View file

@ -1,17 +1,15 @@
[tox]
envlist = py{26}-django{16}-cms{30,31},py{27,33,34}-django{16,17}-cms{30,31}
envlist = py{26}-django{16}-cms{30,31},py{27,33,34}-django{16,17,18}-cms{30,31}
[testenv]
deps =
html5lib < 0.9999
django16: Django>=1.6,<1.7
django17: Django>=1.7,<1.8
django18: Django>=1.7,<1.9
cms30: https://github.com/divio/django-cms/archive/support/3.0.x.zip
cms31: https://github.com/divio/django-cms/archive/develop.zip
cms31: https://github.com/divio/django-cms/archive/support/3.1.x.zip
cms32: https://github.com/divio/django-cms/archive/develop.zip
py26: unittest2
py26: django-select2
py27: django-select2
py33: django-select2-py3
py34: django-select2-py3
-r{toxinidir}/requirements-test.txt
commands = {env:COMMAND:python} setup.py test