From 11a40cc235eb621dd56475428ce78b3fd0dd4074 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 30 Aug 2024 08:48:20 +0000 Subject: [PATCH 1/2] Bump django from 5.0.7 to 5.1 Bumps [django](https://github.com/django/django) from 5.0.7 to 5.1. - [Commits](https://github.com/django/django/compare/5.0.7...5.1) --- updated-dependencies: - dependency-name: django dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- poetry.lock | 10 +++++----- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/poetry.lock b/poetry.lock index 71628bd1d..6e631249f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -376,17 +376,17 @@ files = [ [[package]] name = "django" -version = "5.0.7" +version = "5.1" description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design." optional = false python-versions = ">=3.10" files = [ - {file = "Django-5.0.7-py3-none-any.whl", hash = "sha256:f216510ace3de5de01329463a315a629f33480e893a9024fc93d8c32c22913da"}, - {file = "Django-5.0.7.tar.gz", hash = "sha256:bd4505cae0b9bd642313e8fb71810893df5dc2ffcacaa67a33af2d5cd61888f2"}, + {file = "Django-5.1-py3-none-any.whl", hash = "sha256:d3b811bf5371a26def053d7ee42a9df1267ef7622323fe70a601936725aa4557"}, + {file = "Django-5.1.tar.gz", hash = "sha256:848a5980e8efb76eea70872fb0e4bc5e371619c70fffbe48e3e1b50b2c09455d"}, ] [package.dependencies] -asgiref = ">=3.7.0,<4" +asgiref = ">=3.8.1,<4" sqlparse = ">=0.3.1" tzdata = {version = "*", markers = "sys_platform == \"win32\""} @@ -1216,4 +1216,4 @@ brotli = ["brotli"] [metadata] lock-version = "2.0" python-versions = "3.11.*" -content-hash = "085eaf03b9db6780dc02c236912cd40a76ce58b1c152d5c2fc86dcda82478107" +content-hash = "78d1ca9a09bf2b5c298d25064f15626d6a98668cf438f541041e6395cd9223dc" diff --git a/pyproject.toml b/pyproject.toml index 7f2deb53d..2fd1d1ddd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ license = "MIT" [tool.poetry.dependencies] python = "3.11.*" -django = "5.0.7" +django = "5.1" django-distill = "3.2.4" django-environ = "0.11.2" django-filter = "24.3" From 798dc08d0d5f16f70847cf3936771dde249d835e Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Fri, 30 Aug 2024 17:40:47 +0200 Subject: [PATCH 2/2] Rename `check` to `condition` --- pydis_site/apps/api/migrations/0093_user_alts.py | 2 +- pydis_site/apps/api/models/bot/user.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pydis_site/apps/api/migrations/0093_user_alts.py b/pydis_site/apps/api/migrations/0093_user_alts.py index fa5f2102b..db6807b47 100644 --- a/pydis_site/apps/api/migrations/0093_user_alts.py +++ b/pydis_site/apps/api/migrations/0093_user_alts.py @@ -36,6 +36,6 @@ class Migration(migrations.Migration): ), migrations.AddConstraint( model_name='useraltrelationship', - constraint=models.CheckConstraint(check=models.Q(('source', models.F('target')), _negated=True), name='api_useraltrelationship_prevent_alt_to_self'), + constraint=models.CheckConstraint(condition=models.Q(('source', models.F('target')), _negated=True), name='api_useraltrelationship_prevent_alt_to_self'), ), ] diff --git a/pydis_site/apps/api/models/bot/user.py b/pydis_site/apps/api/models/bot/user.py index 4d317b8e1..df5459a53 100644 --- a/pydis_site/apps/api/models/bot/user.py +++ b/pydis_site/apps/api/models/bot/user.py @@ -137,6 +137,6 @@ class Meta: ), models.CheckConstraint( name="%(app_label)s_%(class)s_prevent_alt_to_self", - check=~models.Q(source=models.F("target")), + condition=~models.Q(source=models.F("target")), ), ]