diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71408bb..b568aca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,10 +21,10 @@ jobs: strategy: matrix: python: ['3.10', '3.11'] - django: ['3.2', '4.2'] + django: ['4.2'] exclude: - python: '3.11' - django: '3.2' + django: '4.2' name: Run the test suite (Python ${{ matrix.python }}, Django ${{ matrix.django }} diff --git a/README.rst b/README.rst index 7d19676..b3695dd 100644 --- a/README.rst +++ b/README.rst @@ -34,7 +34,7 @@ Requirements ------------ * Python 3.10 or newer -* Django 3.2 or newer +* Django 4.2 or newer Install diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 5ef9fe1..bd5fdec 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -7,7 +7,7 @@ Installation **Requirements** * Python 3.10 or newer -* Django 3.2+ +* Django 4.2+ 1. Install from PyPI using ``pip``: diff --git a/tests/test_admin.py b/tests/test_admin.py index 2957dbc..0e07518 100644 --- a/tests/test_admin.py +++ b/tests/test_admin.py @@ -10,10 +10,6 @@ def test_oas_fields_enabled(admin_client: Client, settings): form = response.context["adminform"] - # django 3.2 - if hasattr(form, "form"): - form = form.form - assert "oas" in form.fields assert "oas_file" in form.fields @@ -26,9 +22,5 @@ def test_oas_fields_disabled(admin_client: Client, settings): form = response.context["adminform"] - # django 3.2 - if hasattr(form, "form"): - form = form.form - assert "oas" not in form.fields assert "oas_file" not in form.fields diff --git a/tox.ini b/tox.ini index 2acfada..1984925 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py310-django{32,42} + py310-django42 py311-django42 isort black @@ -15,7 +15,6 @@ python = [gh-actions:env] DJANGO = - 3.2: django32 4.2: django42 [testenv] @@ -35,7 +34,6 @@ extras = tests coverage deps = - django32: Django~=3.2.0 django42: Django~=4.2.0 commands = pytest -s tests \