From b4fb8949c38b8d7dc3ffe54a904508fde0186311 Mon Sep 17 00:00:00 2001 From: Rust Saiargaliev Date: Fri, 9 Aug 2024 15:33:45 +0200 Subject: [PATCH] Fix #483 -- Add Django 5.1 support (#485) * Fix #483 -- Add Django 5.1 support * A different approach --- CHANGELOG.md | 1 + pyproject.toml | 1 + tox.ini | 7 ++++--- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe99960f..63c6fb7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased](https://github.com/model-bakers/model_bakery/tree/main) ### Added +- Add Django 5.1 support ### Changed diff --git a/pyproject.toml b/pyproject.toml index 14382a40..92de76a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ classifiers = [ "Framework :: Django", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", diff --git a/tox.ini b/tox.ini index 2f35e4ec..b9f0e90f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,9 @@ [tox] env_list = py{38,39}-django{42}-{postgresql,sqlite} - py{310,311}-django{42,50}-{postgresql,sqlite} - py{311,312}-django{42,50}-{postgresql-psycopg3} - py312-django50-{postgresql-contenttypes} + py{310,311}-django{42,50,51}-{postgresql,sqlite} + py{311,312}-django{42,50,51}-{postgresql-psycopg3} + py312-django{50,51}-{postgresql-contenttypes} [testenv] package = wheel @@ -25,6 +25,7 @@ deps = pytest-django django42: Django>=4.2,<5 django50: Django>=5.0,<5.1 + django51: Django>=5.1,<5.2 postgresql: psycopg2-binary postgresql-psycopg3: psycopg commands =