aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jchristgit <[email protected]>2024-08-30 18:40:15 +0200
committerGravatar GitHub <[email protected]>2024-08-30 18:40:15 +0200
commit9c4b6cf9b52c6259ebdfcf00bfe0aa4c8129718d (patch)
tree982939ab98cf941fe2fae4ec19434b2e7ad520b0
parentMerge pull request #1418 from python-discord/dependabot/pip/sentry-sdk-2.13.0 (diff)
parentRename `check` to `condition` (diff)
Merge pull request #1416 from python-discord/dependabot/pip/django-5.1
Bump django from 5.0.7 to 5.1
-rw-r--r--poetry.lock10
-rw-r--r--pydis_site/apps/api/migrations/0093_user_alts.py2
-rw-r--r--pydis_site/apps/api/models/bot/user.py2
-rw-r--r--pyproject.toml2
4 files changed, 8 insertions, 8 deletions
diff --git a/poetry.lock b/poetry.lock
index 71628bd1..6e631249 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/pydis_site/apps/api/migrations/0093_user_alts.py b/pydis_site/apps/api/migrations/0093_user_alts.py
index fa5f2102..db6807b4 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 4d317b8e..df5459a5 100644
--- a/pydis_site/apps/api/models/bot/user.py
+++ b/pydis_site/apps/api/models/bot/user.py
@@ -137,6 +137,6 @@ class UserAltRelationship(ModelReprMixin, ModelTimestampMixin, models.Model):
),
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")),
),
]
diff --git a/pyproject.toml b/pyproject.toml
index 7f2deb53..2fd1d1dd 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"