Commit Graph

4715 Commits

Author SHA1 Message Date
Simon Willison 601ceddf79 [3.2.x] Doc'd that RawSQL can be used with __in.
Backport of e53159747c from main
2021-03-25 10:33:16 +01:00
Jannis Vajen e7ce304125 [3.2.x] Fixed page numbers in Paginator.get_elided_page_range() example in docs.
Backport of 4894a97578 from main
2021-03-24 07:35:55 +01:00
tim-mccurrach 153a681198 [3.2.x] Fixed #32576 -- Corrected dumpdata docs for passing model names to the --exclude option.
Backport of cf2f6fc558 from main
2021-03-22 08:44:55 +01:00
kshitijraghav fb92a9e287 [3.2.x] Fixed #32570 -- Removed unnecessary default_auto_field in app config example.
Backport of d40402cfb0 from main
2021-03-19 13:03:36 +01:00
Mariusz Felisiak 4aba70900c [3.2.x] Fixed #32353 -- Confirmed support for PROJ 7.X.
Backport of 065832eaec from main
2021-03-16 20:23:36 +01:00
Hasan Ramezani 7e43a10084 [3.2.x] Fixed #32536 -- Added links to BaseDetailView/BaseListView.get() methods in CBV docs.
Backport of bc04941bf8 from main
2021-03-16 07:59:49 +01:00
Hasan Ramezani d076d9649d [3.2.x] Fixed typo in docs/ref/checks.txt.
Backport of 50ef9dfac2 from main
2021-03-15 09:42:29 +01:00
Mariusz Felisiak 6171d6bb48 [3.2.x] Updated datum directory for PROJ 6 in GIS install instructions.
Backport of 4d912e6697 from main
2021-03-15 08:21:12 +01:00
Markus Holtermann e078747290 [3.2.x] Updated Git branch "master" to "main".
This change follows a long discussion on django-develops:

https://groups.google.com/g/django-developers/c/tctDuKUGosc/

Backport of d9a266d657 from main
2021-03-09 09:33:50 +01:00
Mariusz Felisiak 49970b5e4d [3.2.x] Refs #32483 -- Doc'd caveat about using JSONField key transforms to booleans with QuerySet.values()/values_list() on SQLite.
Backport of c6b07627fc from master
2021-03-04 11:31:00 +01:00
Mariusz Felisiak cd7a5bf33d [3.2.x] Fixed typo in docs/ref/contrib/postgres/fields.txt.
Backport of 05bbff8263 from master
2021-03-04 10:43:41 +01:00
Hasan Ramezani 44969681b8 [3.2.x] Corrected admin.E023 message in docs.
Backport of d1f89c9b9a from master
2021-03-04 09:21:02 +01:00
Jack Aitken 9f277c3a7c [3.2.x] Fixed #32271 -- Improved consistency of docs CBV examples.
Co-Authored-By: Carles Pina i Estany <carles@pina.cat>

Backport of 5fd4f22d19 from master
2021-03-02 09:01:57 +01:00
tim-mccurrach 7e6e822162 [3.2.x] Fixed #20423 -- Doc'd that DTL variable names may not be a number.
Backport of 7587139d35 from master
2021-02-26 21:03:02 +01:00
Adam Johnson f2d955dbe4 [3.2.x] Documented an example custom context processor.
Backport of 0963f184ab from master
2021-02-11 14:37:27 +01:00
Adam Johnson 2ce4f73241 [3.2.x] Improved pagination documentation
* Link to the topic guide
* Document that page() can raise PageNotAnInteger.

Backport of a57e91adee from master
2021-02-11 14:20:19 +01:00
Anil Khatri bae685f267 [3.2.x] Fixed #32430 -- Doc'd base class-based views.
Backport of 6ee86a12ee from master
2021-02-08 17:33:53 +01:00
Anil Khatri 20e0e47f25 [3.2.x] Fixed #32408 -- Doc'd django.views.generic.detail.BaseDetailView.
Backport of de4492fbb1 from master
2021-02-08 07:08:53 +01:00
Brad Solomon eab0b8b804 [3.2.x] Fixed typo in docs/ref/forms/widgets.txt.
Backport of f9cfd346f0 from master
2021-02-01 12:05:22 +01:00
Timothy McCurrach e95a60bb64 [3.2.x] Fixed #32388 -- Clarified QuerySet.bulk_update() caveat about duplicates for multiple batches.
Backport of 241da3f06e from master
2021-01-28 08:07:14 +01:00
Hannes Ljungberg 5d9374b9fb [3.2.x] Refs #26167 -- Corrected OpClass() example in docs.
Backport of 90ddf46ef7 from master
2021-01-25 09:03:31 +01:00
Jack c708837a69 [3.2.x] Refs #32372 -- Updated manager name in related objects reference docs.
Follow up to 725c549ae7.
Backport of 2b4b6c8af0 from master
2021-01-22 20:19:27 +01:00
Jack Aitken 59c63c7f6b [3.2.x] Fixed #32372 -- Made examples in related objects reference docs consistent.
Backport of 725c549ae7 from master
2021-01-22 06:53:13 +01:00
Matthias Kestenholz 41405a0b8e [3.2.x] Fixed #32371 -- Doc'd jquery.init.js dependency for admin widgets.
Backport of 7b3ec6bcc8 from master
2021-01-20 22:07:40 +01:00
Paul Ganssle a5d70cca12 [3.2.x] Refs #32365 -- Allowed use of non-pytz timezone implementations.
Backport of 10d1261984 from master
2021-01-19 12:00:40 +01:00
mimi89999 b5cef91a91 Fixed #31259 -- Added admin dark theme. 2021-01-14 08:27:29 +01:00
Nick Pope 9204485396
Fixed #16117 -- Added decorators for admin action and display functions.
Refs #25134, #32099.
2021-01-13 17:19:22 +01:00
Hannes Ljungberg 83fcfc9ec8 Fixed #26167 -- Added support for functional indexes.
Thanks Simon Charette, Mads Jensen, and Mariusz Felisiak for reviews.

Co-authored-by: Markus Holtermann <info@markusholtermann.eu>
2021-01-13 11:47:50 +01:00
Paolo Melchiorre c412d9af7e
Fixed #32291 -- Added fixtures compression support to dumpdata. 2021-01-12 15:47:58 +01:00
Jon Dufresne ba31b01034
Fixed #31747 -- Fixed model enumeration via admin URLs.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2021-01-12 14:37:56 +01:00
Hasan Ramezani ba3fb2e4d0
Refs #32311 -- Fixed CSRF_FAILURE_VIEW system check errors code. 2021-01-12 11:22:13 +01:00
Mariusz Felisiak fdc3d9dcaf
Removed unused import in docs/ref/models/expressions.txt. (#13879) 2021-01-12 10:51:38 +01:00
Hasan Ramezani 64331419c8
Fixed #32311 -- Added system check for CSRF_FAILURE_VIEW setting. 2021-01-12 09:44:36 +01:00
Iuri de Silvio 02391bc98c
Fixed #32313 -- Corrected QuerySet.in_bulk() signature. 2021-01-11 08:00:49 +01:00
Florian Apolloner 2d6179c819 Fixed #32191 -- Made CookieStorage use RFC 6265 compliant format.
Co-authored-by: Craig Smith <hello@craigiansmith.com.au>
2021-01-07 13:00:53 +01:00
Hasan Ramezani 3eb98743dc
Fixed #32315 -- Doc'd FieldFile.path. 2021-01-07 12:51:59 +01:00
Matthias Kestenholz 0a802233ec
Fixed #32018 -- Extracted admin colors into CSS variables.
Defined all colors used in the admin CSS as variables. Implemented the
following standardizations and accessibility improvements while at it:

- Improved the contrast of text to not use ratios of less than 3:1 anymore.
- Most hover states already used desaturated and darkened colors.
  Changed object tools to follow the same rule instead of showing the
  primary color on hover.

Various places used similar colors; those have been merged with the goal
of reducing the count of CSS variables. Contrasts have been improved in
a few places.

- Many borders used slightly different colors (e.g. #eaeaea vs. #eee)
- Help texts used #999, this has been changed to --body-quiet-color
  (#666) which has a better contrast.

Introduced fast color transitions on links and buttons.
2021-01-07 10:07:19 +01:00
Alexander Lyabah 415f50298f Fixed #32231 -- Allowed passing None params to QuerySet.raw(). 2021-01-05 10:37:11 +01:00
Fabio Sangiovanni 2d6c9b97bc Fixed #32310 -- Fixed note about reverse accessors for intermediate table for self-referential ManyToManyField. 2021-01-04 20:16:07 +01:00
Tim Graham 2e7ba6057c Refs #28741 -- Doc'd SESSION_COOKIE_DOMAIN requirement with CSRF_USE_SESSIONS.
Similar considerations as refs #32065, again adding some nuance to
afd375fc34.
2021-01-04 07:49:30 +01:00
Roland Geider 3363cf4225
Fixed typo in docs/ref/templates/builtins.txt. 2021-01-04 07:34:53 +01:00
Mariusz Felisiak 74fd233b14
Fixed #32303 -- Bumped minimum supported SQLite to 3.9.0. 2020-12-30 09:01:56 +01:00
Mariusz Felisiak 45519937e5 Added app labels to related fields checks messages E302-E305. 2020-12-29 09:01:35 +01:00
Mariusz Felisiak 72d04e0385 Corrected related fields checks messages in docs. 2020-12-29 09:01:35 +01:00
Jon Dufresne 429d089d0a Refs #30367 -- Changed remaining "pip install" to "python -m pip install" in docs. 2020-12-23 17:21:25 +01:00
Jon Dufresne fe886eee36
Corrected code-block directives in docs/ref/models/meta.txt. 2020-12-21 07:56:58 +01:00
joshuapatel 1190af5071
Fixed typo in docs/ref/files/storage.txt. 2020-12-21 07:34:45 +01:00
Hasan Ramezani bebd4cfa8f
Fixed #32273 -- Doc'd AdminSite.unregister(). 2020-12-16 08:08:49 +01:00
Mariusz Felisiak 0ecc70b15a
Fixed typo in docs/ref/forms/widgets.txt.
Thanks rgs258 for the report.
2020-12-15 21:12:26 +01:00
Carlton Gibson 0ed6f3ba4b
Corrected formatting in settings docs. 2020-12-15 12:08:45 +01:00
Tom Forbes b5e12d490a Fixed #31007 -- Allowed specifying type of auto-created primary keys.
This also changes the default type of auto-created primary keys
for new apps and projects to BigAutoField.
2020-12-15 11:25:46 +01:00
Jon Dufresne 550297d20d
Added backticks to code literals in various docs. 2020-12-15 07:19:00 +01:00
Adam Johnson 187e088b48
Removed redundant sentence in 'check' management command docs. 2020-12-14 06:31:53 +01:00
Jan Pieter Waagmeester 991dce4fc5
Corrected docs regarding attributes required for logging in to the admin.
Regression in 939dcff24f.
2020-12-11 23:12:43 +01:00
Kevin Marsh 45f4282149 Refs #31792 -- Updated SQL example in Exists() docs.
Follow up to 51297a9232.
2020-12-10 21:01:57 +01:00
Mariusz Felisiak 5ce31d6a71
Fixed #32193 -- Deprecated MemcachedCache. 2020-12-09 21:27:32 +01:00
Artur Beltsov 48b4bae983 Fixed #32179 -- Added JSONObject database function. 2020-12-02 09:30:50 +01:00
Hasan Ramezani 55fabc5337
Fixed #32232 -- Fixed typo in docs/ref/contrib/admin/actions.txt. 2020-11-30 10:07:28 +01:00
Mariusz Felisiak 931c6e982c Refs #32230 -- Made LayerMapping support pathlib.Path. 2020-11-28 07:41:54 +01:00
Hasan Ramezani b37be072a2 Fixed #32230 -- Made DataSource support pathlib.Path. 2020-11-28 07:36:19 +01:00
Ian Foote 8b040e3cbb Fixed #25534, Fixed #31639 -- Added support for transform references in expressions.
Thanks Mariusz Felisiak and Simon Charette for reviews.
2020-11-27 20:42:04 +01:00
Neil Lyons e46ca51c24
Refs #32230 -- Fixed DataSource example in GeoDjango tutorial.
DataSource.ds_input doesn't support pathlib.Path().

Regression in 26554cf5d1.
2020-11-27 06:57:20 +01:00
David-Wobrock 7b42d34646 Refs #27718 -- Doc'd and tested QuerySet.exists() for combined querysets.
Supported since 84c1826ded.
2020-11-16 15:15:41 +01:00
Nick Pope 300def5c34 Doc'd that admin site booleans are tri-state. 2020-11-14 07:28:13 +01:00
Nick Pope aa53655e6e
Improved examples in ModelAdmin.list_display docs. 2020-11-14 06:36:40 +01:00
Nick Pope 477c800443
Changed docs and a code comment to use gender-neutral pronouns.
Follow up to e1b7723817.
2020-11-13 22:26:30 +01:00
Sam 895f6e4992 Fixed #32149 -- Added support for years < 1000 to DateFormat.y(). 2020-11-12 12:43:06 +01:00
Caio Ariede 9a3454f604 Fixed #31122 -- Clarified that Lookup acts as a query expression. 2020-11-11 14:29:06 +01:00
MinchinWeb f1585c54d0
Fixed #31216 -- Added support for colorama terminal colors on Windows.
Modern setups on Windows support terminal colors.
The colorama library may also be used, as an
alternative to the ANSICON library.
2020-11-11 14:27:10 +01:00
Artem Kosenko b7f500396e Fixed #31757 -- Adjusted system check for SECRET_KEY to warn about autogenerated default keys.
Thanks Nick Pope, René Fleschenberg, and Carlton Gibson for reviews.
2020-11-11 12:45:34 +01:00
Carles Pina i Estany 721c95ba0b Fixed #32180 -- Added system check for file system caches absolute location. 2020-11-11 11:04:52 +01:00
Craig Smith 354c1524b3 Fixed #32045 -- Doc'd GenericRelatedObjectManager methods.
This also documents that .remove() and clear() methods delete related
objects.
2020-11-06 11:31:21 +01:00
Artur Beltsov 18c8ced81e Fixed #32169 -- Added distinct support to JSONBAgg. 2020-11-04 21:22:54 +01:00
christa c36075ac1d Fixed #31983 -- Added system check for file system caches location.
Thanks Johannes Maron and Nick Pope for reviews.
2020-11-04 20:30:23 +01:00
Nikita Sobolev 42f3fafdfa
Updated {% static %} tag examples in docs to use single quotes where appropriate. 2020-11-02 10:34:24 +01:00
Carlton Gibson ad11f5b8c9 Fixed #32124 -- Added per-view opt-out for APPEND_SLASH behavior. 2020-10-22 14:15:19 +02:00
Tom Carrick f5e07601b2 Fixed #32046 -- Added CreateCollation/RemoveCollation operations for PostgreSQL. 2020-10-21 10:53:44 +02:00
Mariusz Felisiak 197b55c534
Fixed outdated notes in SchemaEditor docs. 2020-10-20 09:49:05 +02:00
Mariusz Felisiak b3b0be3df3
Fixed typo in docs/ref/checks.txt. 2020-10-19 19:22:37 +02:00
Claude Paroz 7f85498eef Fixed #32110 -- Doc'd and tested enumerations for ChoiceField.choices. 2020-10-17 20:30:57 +02:00
Jacob Walls ac6c426007 Fixed #20601 -- Allowed forcing format with thousand separators in floatformat filter.
Thanks Claude Paroz and Nick Pope for reviews.
2020-10-13 10:36:46 +02:00
Paul Grau 855fc06236
Fixed #29356 -- Clarified docs for QueryDict.getlist() default. 2020-10-08 14:19:51 +02:00
Jacob Walls d976c254fc
Fixed #23681, Fixed #27445 -- Doc'd setting choices for NullBooleanField widgets.
Thanks to David Smith for investigation and review.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2020-10-08 12:39:02 +02:00
Carlton Gibson 3d4ffd1ff0 Fixed #32065 -- Restored leading dot to CSRF_COOKIE_DOMAIN examples.
Partially reverts afd375fc34.

Thanks to Tim Graham for review.
2020-10-07 10:03:10 +02:00
Tom Carrick dcb69043d0 Fixed #32002 -- Added headers parameter to HttpResponse and subclasses. 2020-10-07 09:19:57 +02:00
Mariusz Felisiak 292b3be698
Refs #31777 -- Doc'd Char/TextField.db_collation parameter in MySQL notes. 2020-10-02 13:29:50 +02:00
Nick Pope 06c5d3fafc Fixed #32060 -- Added Random database function. 2020-10-02 06:58:03 +02:00
Peter Marheine f87b0ecd37 Fixed #32041 -- Doc'd how to modify served files' content types on Windows. 2020-10-01 13:32:26 +02:00
MAHANTH-wq 0da212ffbf Fixed #32057 -- Doc'd HttpResponse.get()/items(). 2020-10-01 09:44:40 +02:00
aryan 11c4a4412b Fixed #30422 -- Made TemporaryFileUploadHandler handle interrupted uploads.
This patch allows upload handlers to handle interrupted uploads.

Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-09-30 10:30:43 +02:00
David Smith 91669cc566 Fixed #28009 -- Doc'd empty_value for CharField subclasses. 2020-09-25 12:36:33 +02:00
David Smith e6d77e6515 Fixed empty values of forms.JSONField and forms.UUIDField in docs. 2020-09-25 10:12:01 +02:00
Mariusz Felisiak 33e91f3ed8 Refs #32038 -- Added note to ModelAdmin.list_filter docs that GenericForeignKeys are not supported. 2020-09-25 10:09:28 +02:00
Mariusz Felisiak 10a289745f
Fixed typo and indentation in docs/ref/forms/fields.txt. 2020-09-25 10:04:10 +02:00
Paweł Zarębski 054ab1e00f
Fixed example of QuerySet.explain() with flags in docs. 2020-09-23 11:47:31 +02:00
Mariusz Felisiak 77caeaea88
Fixed #32012 -- Made test database creation sync apps models when migrations are disabled.
Thanks Jaap Roes for the report.
2020-09-23 10:54:04 +02:00
Tom Carrick e387f191f7 Fixed #31777 -- Added support for database collations to Char/TextFields.
Thanks Simon Charette and Mariusz Felisiak for reviews.
2020-09-21 18:24:56 +02:00
Mariusz Felisiak ba6b32e5ef
Refs #32013 -- Added backward incompatibility note about ModelChoiceIterator changes. 2020-09-21 06:25:23 +02:00
Mike Lissner 8c0794ba0d Refs #28939 -- Doc’d Prefetch behavior with multiple DBs. 2020-09-17 14:26:33 +02:00
Nick Pope b4d46df5ca Fixed #29887 -- Added a cache backend for pymemcache. 2020-09-16 09:40:30 +02:00