1
0
mirror of https://github.com/django/django.git synced 2025-03-20 22:30:45 +00:00

31523 Commits

Author SHA1 Message Date
Mariusz Felisiak
5933d7033d Ignored 14459f80ee3a9e005989db37c26fd13bb6d2fab2 formatting changes in git blame. 2023-03-01 13:33:23 +01:00
django-bot
14459f80ee Fixed -- Reformatted code blocks in docs with blacken-docs. 2023-03-01 13:03:56 +01:00
Mariusz Felisiak
6015bab80e Refs -- Added configurations to run blacken-docs linter and adjusted docs.
This adds:
- GitHub actions,
- tox configuration,
- pre-commit hook, and
- makefile rules
to run blacken-docs linter.

Co-authored-by: David Smith <smithdc@gmail.com>
2023-03-01 13:02:57 +01:00
Mariusz Felisiak
9cf2a5df70 Refs -- Made minor edits to rst code-blocks. 2023-03-01 13:02:54 +01:00
Mariusz Felisiak
498bff9499 Ignored ba755ca13123d2691a0926ddb64e5d0a2906a880 formatting changes in git blame. 2023-02-28 12:56:19 +01:00
Joseph Victor Zammit
ba755ca131 Refs -- Corrected rst code-block and various formatting issues in docs. 2023-02-28 12:21:37 +01:00
Simon Charette
c67ea79aa9 Fixed -- Made subquery raise NotSupportedError when referencing outer window expression.
Regression in f387d024fc75569d2a4a338bfda76cc2f328f627.

Co-authored-by: Jannis Vajen <jvajen@gmail.com>
2023-02-27 07:18:58 +01:00
Simon Charette
b15f162f25
Fixed -- Fixed queryset crash on order by aggregation using OrderBy.
Regression in 278881e37619278789942513916acafaa88d26f3 caused by a lack
of expression copying when an OrderBy expression is explicitly provided.

Thanks Jannis Vajen for the report and regression test.
2023-02-27 07:10:19 +01:00
Laurent Tramoy
2276ec8c21 Fixed -- Reduced AlterField operations when optimizing migrations. 2023-02-24 13:59:42 +01:00
Adam Johnson
f9fe062de5 Doc'd that Meta.indexes is preferred to Field.db_index. 2023-02-24 09:08:59 +01:00
Mariusz Felisiak
2c428b37ae
Refs -- Fixed isolation of constraints tests.
Regression in 5b3d3e400ab9334ba429ca360c9818c6dfc3a51b.
2023-02-24 09:02:45 +01:00
Tim Graham
40e88ae8c8
Refs -- Added skipIf for a test requiring check constraints. 2023-02-24 06:00:00 +01:00
Mariusz Felisiak
16c966ff7f
Refs , Refs -- Made SchemaEditor not generate SQL for CheckConstraint if not supported.
The new logic mirrors the logic in SchemaEditor._delete_check_sql()
added in 68ef274bc505cd44f305c03cbf84cf08826200a8.

Thanks Tim Graham for the report.
2023-02-23 21:12:17 +01:00
Xavier Fernandez
5b3d3e400a Fixed -- Allowed customizing code of ValidationError in BaseConstraint and subclasses. 2023-02-23 10:58:20 +01:00
Xavier Fernandez
51c9bb7cd1 Refs -- Added violation_error_message to constraints' __repr__(). 2023-02-23 05:35:58 +01:00
Panagiotis H.M. Issaris
dcd9746983
Fixed -- Fixed floatformat crash on zero with trailing zeros.
Regression in 08c5a787262c1ae57f6517d4574b54a5fcaad124.
Follow up to 4b066bde692078b194709d517b27e55defae787c.
2023-02-22 20:46:16 +01:00
Xavier Fernandez
ad18a0102c Fixed -- Deprecated passing positional arguments to BaseConstraint. 2023-02-22 09:37:58 +01:00
Tim Graham
31cd2852cb
Moved DatabaseIntrospection.get_table_description() internal_size release note to "Database backend API" section. 2023-02-22 05:17:02 +01:00
Mariusz Felisiak
96bc4254ee
Refs -- Added test for nesting QuerySet.union().
This was fixed in MySQL 8.0.31.
2023-02-21 12:47:52 +01:00
David Buhler
a91e59e4a0 Fixed -- Allowed PostGIS DatabaseWrapper subclasses to customize (features/introspection/ops)_class classes. 2023-02-21 08:52:23 +01:00
Mariusz Felisiak
5afd8c6940
Refs -- Added test for not initializing PostGIS-specific stuff for non-db connections. 2023-02-21 08:42:28 +01:00
Laurens Verhoeven
6cbc403b8e Fixed -- Fixed FormSet.empty_form crash when deleting extra forms is disabled. 2023-02-20 09:04:29 +01:00
Simon Charette
278881e376 Fixed -- Ordered selected expressions by position.
Used the same approach as for  by using selected expressions
position to prevent ambiguous aliases in collisions.

Thanks henribru for the report.

Regression in 04518e310d4552ff7595a34f5a7f93487d78a406.
2023-02-20 05:54:25 +01:00
Simon Charette
f91e085c30 Refs -- Adjusted group by position variables naming to follow SQL spec.
This avoids conceptual collisions with the notion of indices.
2023-02-18 18:42:49 -05:00
Simon Charette
a6511bc233 Refs -- Added tests for queryset ordered by annotation with nulls_first/nulls_last. 2023-02-18 16:28:10 +01:00
syre
eafe1468d2 Fixed -- Added __all__ to django.contrib.gis.utils. 2023-02-17 21:06:41 +01:00
Stefan Brand
eacf6b73d8 Fixed -- Fixed SpatialReference.srid for objects without top-level authority. 2023-02-17 19:56:29 +01:00
Stefan Brand
d77762de03 Refs -- Fixed SpatialReference.auth_name()/auth_code() when target is None.
force_bytes() turns None into the byte string b"None". Since
ctypes.c_char_p() also accepts None, we can bypass force_bytes() if
target is None.
2023-02-17 19:56:29 +01:00
Alexandre Spaeth
52b054824e Fixed , Refs -- Fixed test client handling of async streaming responses.
Bug in 0bd2c0c9015b53c41394a1c0989afbfd94dc2830.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2023-02-17 10:48:04 +01:00
Alexandre Spaeth
bfb8fda3e6 Refs -- Added tests for handling sync streaming responses by test client.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2023-02-17 10:48:00 +01:00
Nick Pope
8eef22dfed Fixed -- Moved built-in templates to filesystem. 2023-02-17 09:50:50 +01:00
Mariusz Felisiak
bae053d497
Refs , Refs -- Added warning to ManifestStaticFilesStorage docs about paths in comments. 2023-02-16 19:18:55 +01:00
Durval Carvalho
85366fbca7 Fixed -- Improved accessibility of selecting items in admin changelist.
This adds "aria-label".
2023-02-16 08:29:40 +01:00
nabil-rady
6bdc3c58b6 Fixed -- Make sure constraints names are obtained from truncated columns names. 2023-02-15 16:51:31 +01:00
David Smith
3cc7a92189 Refs -- Doc'd setting a form's template_name is recomended over using as_* methods. 2023-02-15 10:26:31 +01:00
David Smith
232b60a21b Refs -- Updated docs to reflect default <div> style form rendering in Django 5.0.
Follow up to 98756c685ee173bbd43f21ed0553f808be835ce5.
2023-02-15 10:14:09 +01:00
David Smith
4038a8df0b Refs -- Doc'd BaseFormSet.as_div() 2023-02-15 09:24:08 +01:00
Marcelo Galigniana
f9f0092346 Completed test coverage for django.utils.datastructures. 2023-02-15 07:45:00 +01:00
Marcelo Galigniana
f608e6a157 Completed test coverage for django.db.migrations.graph. 2023-02-15 07:40:19 +01:00
Marcelo Galigniana
5b23d6666e Completed test coverage for django.forms.utils. 2023-02-15 07:36:05 +01:00
Sarah Boyce
e13954d2cf
Bumped grunt-contrib-qunit versions in npm configurations. 2023-02-14 19:51:21 +01:00
DevilsAutumn
ff3a283422 Fixed -- Fixed renaming model with m2m relation to a model with the same name. 2023-02-14 14:08:06 +01:00
Carlton Gibson
ce8189eea0
Fixed -- Added async-only class-based middleware example. 2023-02-14 14:06:42 +01:00
tschilling
c5808470aa Fixed -- Allowed specifying different field values for create operation in QuerySet.update_or_create(). 2023-02-14 11:50:35 +01:00
Carlton Gibson
ecafcaf634 Added CVE-2023-24580 to security archive. 2023-02-14 09:52:30 +01:00
Markus Holtermann
85ac33591c Fixed CVE-2023-24580 -- Prevented DoS with too many uploaded files.
Thanks to Jakob Ackermann for the report.
2023-02-14 08:18:40 +01:00
Sarah Boyce
1eb94bc8da
Fixed -- Added warning about performance of FileBasedCache with a large number of files.
Co-authored-by: sheenarbw <699166+sheenarbw@users.noreply.github.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-02-13 21:09:19 +01:00
Sarah Boyce
7e297e52c2
Bumped versions in pre-commit and npm configurations. 2023-02-13 20:51:53 +01:00
Sota Tabu
3e9d413231 Fixed -- Added release note for 4bfe8c0eec835b8eaffcda7dc1e3b203751a790a. 2023-02-13 11:59:11 +01:00
sarahboyce
e678046681 Fixed -- Fixed layout of admin password change forms and help texts.
Regression in 96a598356a9ea8c2c05b22cadc12e256a3b295fd.
2023-02-13 09:41:31 +01:00