From feb40f2980f99145c73af24df986067090a581ed Mon Sep 17 00:00:00 2001 From: vb64 Date: Sun, 16 Feb 2025 22:03:56 +0400 Subject: [PATCH 1/2] Django 5.1.6 in tests --- .github/workflows/django3.yml | 2 +- .github/workflows/django5.yml | 2 +- README.md | 4 ++-- tests/django4.txt | 2 +- tests/django5.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/django3.yml b/.github/workflows/django3.yml index 54f5d34..e1288d2 100644 --- a/.github/workflows/django3.yml +++ b/.github/workflows/django3.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10'] + python-version: ['3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/django5.yml b/.github/workflows/django5.yml index e24b480..cdb1186 100644 --- a/.github/workflows/django5.yml +++ b/.github/workflows/django5.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.10', '3.11', '3.12'] + python-version: ['3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v3 diff --git a/README.md b/README.md index f9d4eb5..998e89b 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vb64/django.admin.geomap/pep257.yml?label=Pep257&style=plastic&branch=main)](https://github.com/vb64/django.admin.geomap/actions?query=workflow%3Ageomap-pep257) [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vb64/django.admin.geomap/django3.yml?label=Django%203.2.25&style=plastic&branch=main)](https://github.com/vb64/django.admin.geomap/actions?query=workflow%3Adjango3) -[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vb64/django.admin.geomap/django4.yml?label=Django%204.2.16&style=plastic&branch=main)](https://github.com/vb64/django.admin.geomap/actions?query=workflow%3Adjango4) -[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vb64/django.admin.geomap/django5.yml?label=Django%205.1.1&style=plastic&branch=main)](https://github.com/vb64/django.admin.geomap/actions?query=workflow%3Adjango5) +[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vb64/django.admin.geomap/django4.yml?label=Django%204.2.19&style=plastic&branch=main)](https://github.com/vb64/django.admin.geomap/actions?query=workflow%3Adjango4) +[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vb64/django.admin.geomap/django5.yml?label=Django%205.1.6&style=plastic&branch=main)](https://github.com/vb64/django.admin.geomap/actions?query=workflow%3Adjango5) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/d565c3a3d78e4e198f35688432a741eb)](https://app.codacy.com/gh/vb64/django.admin.geomap/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Codacy Badge](https://app.codacy.com/project/badge/Coverage/d565c3a3d78e4e198f35688432a741eb)](https://app.codacy.com/gh/vb64/django.admin.geomap/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage) [![PyPI - Downloads](https://img.shields.io/pypi/dm/django-admin-geomap?label=pypi%20installs)](https://pypistats.org/packages/django-admin-geomap) diff --git a/tests/django4.txt b/tests/django4.txt index fed2dbf..17ba70a 100644 --- a/tests/django4.txt +++ b/tests/django4.txt @@ -1 +1 @@ -Django==4.2.16 +Django==4.2.19 diff --git a/tests/django5.txt b/tests/django5.txt index fc8ea78..ee40f0f 100644 --- a/tests/django5.txt +++ b/tests/django5.txt @@ -1 +1 @@ -Django==5.1.1 +Django==5.1.6 From 54aa47f0048b33b6c9fb6f3a6deb9e7bfbdcf7a5 Mon Sep 17 00:00:00 2001 From: vb64 Date: Sun, 16 Feb 2025 22:12:01 +0400 Subject: [PATCH 2/2] fix pylint --- .pylintrc | 1 + example/settings.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.pylintrc b/.pylintrc index 4447454..ed4aa73 100644 --- a/.pylintrc +++ b/.pylintrc @@ -410,6 +410,7 @@ valid-metaclass-classmethod-first-arg=mcs # Maximum number of arguments for function / method max-args=15 +max-positional-arguments=10 # Maximum number of attributes for a class (see R0902). max-attributes=15 diff --git a/example/settings.py b/example/settings.py index 675cc90..a2f18ad 100644 --- a/example/settings.py +++ b/example/settings.py @@ -11,6 +11,7 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = ['*'] +DEFAULT_AUTO_FIELD='django.db.models.AutoField' # Application definition INSTALLED_APPS = (