forked from django-cms/djangocms-link
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Django 1.11/2.0/2.1 and drop for 1.8/1.9/1.10 (django…
- Loading branch information
Showing
11 changed files
with
47 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
from distutils.version import LooseVersion | ||
|
||
from django.conf import settings | ||
|
||
ENABLE_SELECT2 = getattr(settings, 'DJANGOCMS_LINK_USE_SELECT2', False) | ||
|
||
if ENABLE_SELECT2 and 'django_select2' in settings.INSTALLED_APPS: | ||
import django_select2 | ||
|
||
select2_version = LooseVersion(django_select2.__version__) | ||
if select2_version >= LooseVersion('5'): | ||
try: | ||
from djangocms_link.fields_select2 import Select2PageSearchField as PageSearchField | ||
else: | ||
except ImportError: | ||
from djangocms_link.fields_select2_legacy import Select2LegacyPageSearchField as PageSearchField | ||
else: | ||
from cms.forms.fields import PageSelectFormField as PageSearchField |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# requirements from setup.py | ||
django-select2>=5.0 | ||
django-select2>=5.11 | ||
# other requirements | ||
djangocms-text-ckeditor | ||
html5lib<0.99999999 | ||
djangocms-helper>=0.9.2,<0.10 | ||
djangocms-helper>=1.1.0,<1.2.0 | ||
tox | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters