On these example queries on DateTimeFields: TestModel.objects.filter(created_at__gt__foo='2024-01-01') TestModel.objects.filter(created_at__gt__='2024-01-01') # I'm a bit surprised this...
fixed: In 85c154d : Fixed #35412 -- Dropped support for SQLite < 3.31.
Fixed #35412 -- Dropped support for SQLite < 3.31.
https://code.djangoproject.com/changeset/85c154da2f07485a1cdc4d886eee4c1a1ef56137
duplicate: Hi ilar 👋 thank you for the report and screenshots. Was able to replicate the issue and confirmed is was introduced in 729266c6f29c7a0677b24926a86a767ef3078b26 , this has been f...
SQLite 3.28+ supports EXCLUSION and fixed distances in window expressions. SQLite 3.30.1+ supports SQL 2003 FILTER (WHERE ...) in aggregate expressions. SQLite 3.31+ supports virtual fields. ...
Added minimum SQLite version for Python 3.10. (diff )
https://code.djangoproject.com/wiki/SupportedDatabaseVersions?version=32
invalid: Hi HTErik 👋 I recommend you look into django-stubs for configuring type checking with your Django project If you have issues setting up type annotations on your project, I rec...
Issue: By default, a model with many checkboxes in Django Admin in a fieldset will extend off the page, clipping and causing you to lose inputs based off the number of bools and size of your sc...
Refs #35339 -- Fixed source expressions in GeoAggregate on Oracle. Regression in 42b567ab4c5bfb1bbd3e629b1079271c5ae44ea0 .
https://code.djangoproject.com/changeset/8c257cecffc314179a5375ab8a16ca0ff3b6fb16
Updated MariaDB version to 10.5.24. (diff )
invalid: You didn't provide the full traceback but I suspect the error comes from Department.objects.get_or_create(). I don't think Django is at fault. You could make the migrations in two ste...
Fixed #20744 -- Removed hint that arbitrary kwargs are allowed when creating forms.Fields. Backport of 828b94b178736f7882cc6e5cd86b5c8e84b62ece from main
https://code.djangoproject.com/changeset/f29922b6ef10e913a12d569eec0a87d3ae208235
Hello, So, I'm trying to add a ForeignKey field with a default value in a custom user model. The use case is that each user should be assigned to a department. But all new users should have ...
worksforme: Hello Marc! Thank you for your report. In order to do a proper triage of this ticket, I need your help with the following: Could you please confirm that this issue is present in t...
My application has an emailer page with a list of recipients that can be edited as follows. In the form definition: recipients = forms.MultipleChoiceField(widget=forms.CheckboxSelectMultipl...
fixed: In 828b94b : Fixed #20744 -- Removed hint that arbitrary kwargs are allowed when creating forms.Fields.
Fixed #20744 -- Removed hint that arbitrary kwargs are allowed when creating forms.Fields.
https://code.djangoproject.com/changeset/828b94b178736f7882cc6e5cd86b5c8e84b62ece
Made confirmation prompt in squashmigrations consistent with other prompts. Prior to this change, squashmigrations would use a prompt to ask for user confirmation. A slash was added between ...
https://code.djangoproject.com/changeset/e1431dd92e78c916ab8ba42c1c40bb143bc57d4d
I have often seen django.contrib.auth.management.create_permissions() take a significant amount of time in test run profiles. It can be optimized by batching more of its operations, including ma...
Another candidate for caching, like #35232 before. The Model._meta.swapped property returns the model that this one has been swapped for. Since most models are not swappable (only auth.User i...
When using Django defined Models together with type annotation on top level functions in a module, the imports to the Django models first require calling the global settings.configure(). When u...
fixed: In c8df2f99 : Fixed #35339 -- Fixed PostgreSQL aggregate's filter and order_by params order. Updated OrderableAggMixin.as_sql() to separate the order_by parameters from the filter...
Refs #35339 -- Updated Aggregate class to return consistent source expressions. Refactored the filter and order_by expressions in the Aggregate class to return a list of Expression (or None)...
https://code.djangoproject.com/changeset/42b567ab4c5bfb1bbd3e629b1079271c5ae44ea0
Fixed #35339 -- Fixed PostgreSQL aggregate's filter and order_by params order. Updated OrderableAggMixin.as_sql() to separate the order_by parameters from the filter parameters. Previously, ...
https://code.djangoproject.com/changeset/c8df2f994130d74ec35d32a36e30aad7d6ea8e3a
FieldCacheMixin is used by related fields to track their cached values. Its existing design means calling get_cache_name() for each operation, even though that value doesn’t change. Changing g...
invalid: Hi Patrick 👋 I think this ticket is a bit of a mix of a support request, new feature request, and docs update request. With support requests (how do I best achieve X with Django)...
Hello. I have noticed a couple regressions in the admin fieldset css. I think they are all related to switching
I sometimes have a class based view which has a GET and a POST method, for example a ListView which shows some objects with a POST form to create something out of it. In the documentation (...
duplicate: Hello Willem, while the benchmarks are useful, considering Simon's responses and Django's usual procedures for accepting changes, I believe it would be best to continue the conversa...
invalid: Hi Ryan, thank you for this ticket I've been thinking about it quite a while. I think the docs specifically on SECRET_KEY_FALLBACKS is clear enough in terms of what the setti...
Since the introduction of DatabaseFeatures.django_test_skips (#32178 ), I've used it to skip test classes, however, this can crash if there are multiple test modules in a package. To reproduce...
Pinned GitHub Actions for reminders to commit hashes for latest release.
https://code.djangoproject.com/changeset/ec8552417df51df8482df61b8ad78a7002634011
Improved phrasing and removed bold text in the GitHub pull request template.
https://code.djangoproject.com/changeset/694a96524b0cf4809f7f597f73d039cb9438cc93
The GZip Middleware documentation makes mention of the gzip_page decorator , but the Conditional GET middleware doesn't mention there's an equivalent conditional_page decorator, likel...
fixed: In e64d42e : Fixed #35395 -- slice filter crashes on an empty dict with Python 3.12. Keep consistent behaviour of slice() filter between python 3.12 and prior versions in the case...
Fixed #35395 -- slice filter crashes on an empty dict with Python 3.12. Keep consistent behaviour of slice() filter between python 3.12 and prior versions in the case of a dict passed to the...
https://code.djangoproject.com/changeset/e64d42e753e5c7763398d018f5ccaa95efc7588e
fixed: In 16d0542b : Fixed #35382 -- Removed unused CSS for admin inline fieldsets.
Fixed #35382 -- Removed unused CSS for admin inline fieldsets.
https://code.djangoproject.com/changeset/16d0542bb6812b94895136d26f86b33d20e6a072
Hi, I was looking at the documentation for SECRET_KEY_FALLBACKS and I think the documentations advice for how to rotate keys is a little to simplistic and will lead to unexpected issues with...
invalid: Django 4.2 is in extended support so it no longer receives bugfixes (except security patches), and this issue doesn't qualify for a backport to the Django 5.0. Closing as "invalid".
duplicate: This was discussed in #35124 recently and at lead to this discussion about the complexity of and cost of hashing certain values quickly. Unless you can provide benchmarks that ...
fixed: In 83f54782 : Fixed #35356 -- Deferred self-referential foreign key fields adequately. While refs #34612 surfaced issues with reverse one-to-one fields deferrals, it missed that ...
Fixed #35356 -- Deferred self-referential foreign key fields adequately. While refs #34612 surfaced issues with reverse one-to-one fields deferrals, it missed that switching to storing remo...
https://code.djangoproject.com/changeset/83f5478225588f31e7cbbfed63a4a2b936abc03f
Refs #35356 -- Clarified select related with masked field logic. By always including related objects in the select mask via adjusting the defer logic (_get_defer_select_mask()), it becomes p...
https://code.djangoproject.com/changeset/195d885ca01b14e3ce9a1881c3b8f7074f953736
Django's .bulk_update(..) seems to work with sequences of Case-When *per* field and *per* record to update. In other words, if we have three items we want to update with pk being 1, 4 and 5, and...
invalid: > I can provide a test case with the built-in storage engines if it > helps. Please do as this is working for me on main: TESTS/FILE_STORAGE/TESTS.PY diff --git a...
duplicate: Duplicate of #33552 and fixed as of 4.1 (note that 3.0 is no longer supported)
needsinfo: Can you share how you are using override_settings to change STORAGES and the original STORAGES setting? That OPTIONS set on the default storage are ignored when using override_setti...
The JSONField defined in the django model contain numbers, such as fields: tags value is {"123": "abc"}, and querying XX.objects.filter (tagshas_key='123') is invalid! get nothing.
Fixed incorrect blockquotes in docs/topics/forms/index.txt. Backport of bcad5ad92b1dad2874453dee7a480e9b9f29aad5 from main
https://code.djangoproject.com/changeset/8468ea237df2303fd43a37a71d3f5637550a16c7