Skip to content

Commit

Permalink
Fix for codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
lqez committed Jan 12, 2021
1 parent 3932cbf commit a194f5c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ python:
- "3.8"
- "3.9"
install:
- pip install -q -U pip tox tox-travis python-coveralls
- pip install -q -U pip tox tox-travis
- pip install -e .[dev]
script:
- tox
after_success:
- coveralls
- bash <(curl -s https://codecov.io/bash)
10 changes: 7 additions & 3 deletions django_summernote/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
__project__ = PROJECT = 'django-summernote'
__author__ = AUTHOR = "django-summernote contributors"

from django import VERSION as django_version
if django_version < (3, 2):
default_app_config = 'django_summernote.apps.DjangoSummernoteConfig'
try:
from django import VERSION as django_version
if django_version < (3, 2):
default_app_config = 'django_summernote.apps.DjangoSummernoteConfig'
except ModuleNotFoundError:
# This part is needed for setup.py
pass
2 changes: 0 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ deps =
pytest
pytest-django
coverage
django-dummy-plug
bleach

dj202: Django<2.3
dj300: Django<3.1
Expand Down

0 comments on commit a194f5c

Please sign in to comment.