1
0
Fork 0
Commit graph

9349 commits

Author SHA1 Message Date
e6ee169c3e
Narrow down bare type: ignore pragmas 2024-04-26 21:20:43 -03:00
29f852b57e
consolidate multiple cache.delete() calls into cache.delete_many() 2024-04-26 15:36:38 -03:00
acae063652 Fix new warnings from pylint upgrade 2024-04-26 13:59:16 +02:00
c32f9faaa0 Upgrade pylint to 2.17.7 2024-04-26 13:41:01 +02:00
e7f95ef4c2 Modify update_fields in save() when modifying objects
https://docs.djangoproject.com/en/5.0/releases/4.2/#setting-update-fields-in-model-save-may-now-be-required
2024-04-25 15:53:53 +02:00
a6c2ce15dd Early return 2024-04-25 15:51:32 +02:00
7604d0acdb Simplify ObjectMixin broadcast kwarg 2024-04-25 10:31:24 +02:00
77832cbec7 Add merge migration 2024-04-25 10:14:07 +02:00
de67c73237 Add merge migration 2024-04-25 10:14:07 +02:00
f38622fdc9 Define CSRF_TRUSTED_ORIGINS 2024-04-25 10:14:07 +02:00
051dab77bb Replace deprecated CICharField with custom collation for case-insensitivity 2024-04-25 10:14:07 +02:00
2896219e88 Switch from django-redis to the built-in Redis cache backend 2024-04-25 10:14:07 +02:00
03ac846b5d Migrate from pytz to zoneinfo 2024-04-25 10:14:07 +02:00
39c2a0feae Update qrcode to 7.4.2 2024-04-25 10:14:07 +02:00
22986a08f0 Update pytest to 8.1.1 2024-04-25 10:14:07 +02:00
f6bbe673ca Update responses to 0.25.0 2024-04-25 10:14:07 +02:00
f324a3cd1d Update pytest-xdist to 3.5.0 2024-04-25 10:14:07 +02:00
039160e004 Update pytest-env to 1.1.3 2024-04-25 10:14:07 +02:00
a1ff5a478e Update types-Pillow to 10.2.0.20240331 2024-04-25 10:14:07 +02:00
1cb86197d5 Update types-requests to 2.31.0.20240311 2024-04-25 10:14:07 +02:00
2537886b4d Group version constraints for indirect dependencies and change to >= 2024-04-25 10:14:07 +02:00
1474c0d3aa Remove protobuf as a direct dependency 2024-04-25 10:14:07 +02:00
e46bc2e9a1 Update redis-py to 5.0.3 2024-04-25 10:14:07 +02:00
01b37026eb Update Markdown to 3.6 2024-04-25 10:14:07 +02:00
9ebda3fbe8 Update celery to 5.3.6 2024-04-25 10:14:07 +02:00
b6174d9101 Update bleach to 6.1.0 2024-04-25 10:14:06 +02:00
1303f539c3 Update psycopg to 2.9.9 2024-04-25 10:13:21 +02:00
624115bf11 Use headers dict instead of HTTP_* kwargs or request.META 2024-04-25 10:13:21 +02:00
224fae7a87 Fix mypy errors 2024-04-25 10:13:21 +02:00
869bc5a376 Update mypy to 1.7.1 2024-04-25 10:13:21 +02:00
d80a0146bd Update django-stubs to 4.2.7 2024-04-25 10:13:21 +02:00
e1fd57a1d6 Fix constructor arguments to SessionMiddleware in tests 2024-04-25 10:13:21 +02:00
1f8ba4df3e Update python-dateutil to 2.9.0.post0 2024-04-25 10:13:21 +02:00
c11725a5c8 Update pyotp to 2.9.0 2024-04-25 10:13:21 +02:00
309147bd98 Update pycryptodome to 3.20.0 2024-04-25 10:13:21 +02:00
1276112214 Update opentelemetry dependencies 2024-04-25 10:13:21 +02:00
e9325b8798 Update libsass to 0.23.0 2024-04-25 10:13:21 +02:00
e0a14ea2ba Update django-sass-processor to 1.4 2024-04-25 10:13:21 +02:00
69c273486c Update django-model-utils to 4.4.0 2024-04-25 10:13:19 +02:00
ffb3549e06 Update django-imagekit to 5.0.0 2024-04-25 10:12:30 +02:00
16e1b17a33 Update django-csp to 3.8 2024-04-25 10:12:30 +02:00
3dfbc44c9a Update django-celery-beat to 2.6.0 2024-04-25 10:12:30 +02:00
23bf089004 Update boto3 to 1.34.74 2024-04-25 10:12:30 +02:00
b5ef9f6241 Configure STORAGES using OPTIONS instead of subclassing 2024-04-25 10:12:30 +02:00
4fa823e8df Update django-storages to 1.14.2
The problem that boto3 closes files has been worked around in django-storages.
2024-04-25 10:12:30 +02:00
cfcb873235 Update pytest-cov to 5.0.0 2024-04-25 10:12:30 +02:00
0007c86a2c Update environs to 11.0.0 2024-04-25 10:12:30 +02:00
984d7fb7d8 Update pytest-django to 4.8.0 2024-04-25 10:12:30 +02:00
92a94d2fdc django.utils.timezone.utc alias is deprecated 2024-04-25 10:12:30 +02:00
0d621b68e0 Reorder operations in save() overrides
Accessing many-to-many relations before saving is no longer allowed.

Reorder all operations consistently:
1. Validations
2. Modify own fields
3. Perform save by calling super().save()
4. Modify related objects and clear caches

Especially clearing caches should be done after actually saving, otherwise the old data can be
re-added immediately by another request before the new data is written.
2024-04-25 10:12:30 +02:00