Skip to content

Commit de8ee18

Browse files
committed
Fix gh actions
1 parent 6bd46e2 commit de8ee18

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/python-app.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- django_version: '3.1'
2626
python_version: '3.5'
2727

28-
- django_version: '3.1'
28+
- django_version: '3.2'
2929
python_version: '3.5'
3030
include:
3131
- django_version: '2.2'
@@ -66,7 +66,7 @@ jobs:
6666
sudo apt-get install -y libproj-dev libgeos-dev gdal-bin libgdal-dev
6767
python -m pip install --upgrade pip
6868
pip install -U flake8 coveralls psycopg2-binary argparse
69-
pip install -U Django~=${{ matrix.django_version }}
69+
pip install -U Django~=${{ matrix.django_version }}.0
7070
- name: Lint with flake8
7171
run: |
7272
flake8 --ignore=E501,W504 leaflet

leaflet/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from collections import OrderedDict
22
from urllib.parse import urlparse
33

4+
import django
45
from django.conf import settings
56
from django.core.exceptions import ImproperlyConfigured
67
from django.templatetags.static import static
@@ -182,4 +183,5 @@ def _normalize_plugins_config():
182183
PLUGINS['__is_normalized__'] = True
183184

184185

185-
default_app_config = 'leaflet.apps.LeafletConfig'
186+
if django.VERSION <= (3, 1):
187+
default_app_config = 'leaflet.apps.LeafletConfig'

0 commit comments

Comments
 (0)