Skip to content

Commit

Permalink
Fix gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gagaro committed Apr 12, 2021
1 parent 6bd46e2 commit de8ee18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- django_version: '3.1'
python_version: '3.5'

- django_version: '3.1'
- django_version: '3.2'
python_version: '3.5'
include:
- django_version: '2.2'
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
sudo apt-get install -y libproj-dev libgeos-dev gdal-bin libgdal-dev
python -m pip install --upgrade pip
pip install -U flake8 coveralls psycopg2-binary argparse
pip install -U Django~=${{ matrix.django_version }}
pip install -U Django~=${{ matrix.django_version }}.0
- name: Lint with flake8
run: |
flake8 --ignore=E501,W504 leaflet
Expand Down
4 changes: 3 additions & 1 deletion leaflet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from collections import OrderedDict
from urllib.parse import urlparse

import django
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.templatetags.static import static
Expand Down Expand Up @@ -182,4 +183,5 @@ def _normalize_plugins_config():
PLUGINS['__is_normalized__'] = True


default_app_config = 'leaflet.apps.LeafletConfig'
if django.VERSION <= (3, 1):
default_app_config = 'leaflet.apps.LeafletConfig'

0 comments on commit de8ee18

Please sign in to comment.