1
0
mirror of https://github.com/django/django.git synced 2024-12-28 20:16:19 +00:00
django/docs
Simon Charette 761946f8e1 [5.0.x] Fixed #35149 -- Fixed crashes of db_default with unresolvable output field.
Field.db_default accepts either literal Python values or compilables
(as_sql) and wrap the former ones in Value internally.

While 1e38f11 added support for automatic resolving of output fields for
types such as str, int, float, and other unambigous ones it's cannot do
so for all types such as dict or even contrib.postgres and contrib.gis
primitives.

When a literal, non-compilable, value is provided it likely make the
most sense to bind its output field to the field its attached to avoid
forcing the user to provide an explicit `Value(output_field)`.

Thanks David Sanders for the report.

Backport of e67d7d70fa from main
2024-02-04 14:48:44 +01:00
..
_ext [5.0.x] Applied Black's 2024 stable style. 2024-01-26 12:55:56 +01:00
_theme
faq [5.0.x] Updated examples for 2.0+ release numbering in installation FAQ. 2023-12-15 06:17:02 +01:00
howto [5.0.x] Corrected BaseCommand.check() signature in docs. 2024-01-30 11:41:26 +01:00
internals [5.0.x] Applied Black's 2024 stable style. 2024-01-26 12:55:56 +01:00
intro [5.0.x] Applied Black's 2024 stable style. 2024-01-26 12:55:56 +01:00
man [5.0.x] Updated man page for Django 5.0 rc1. 2023-11-20 08:46:20 -03:00
misc [5.0.x] Removed mention of designers in DTL design philosophy. 2024-02-01 09:20:53 +01:00
ref [5.0.x] Fixed #35141 -- Clarified the expected type of CACHE_MIDDLEWARE_SECONDS setting. 2024-01-29 19:24:10 +01:00
releases [5.0.x] Fixed #35149 -- Fixed crashes of db_default with unresolvable output field. 2024-02-04 14:48:44 +01:00
topics [5.0.x] Fixed typo in docs/topics/db/managers.txt. 2024-02-01 09:26:24 +01:00
conf.py [5.0.x] Bumped django_next_version in docs config. 2023-09-18 11:28:22 -03:00
contents.txt
glossary.txt
index.txt Added Django Forum to mailing lists page. 2023-03-24 08:32:17 +01:00
make.bat Refs #34140 -- Added configurations to run blacken-docs linter and adjusted docs. 2023-03-01 13:02:57 +01:00
Makefile Refs #34140 -- Added configurations to run blacken-docs linter and adjusted docs. 2023-03-01 13:02:57 +01:00
README.rst
requirements.txt Refs #34140 -- Added configurations to run blacken-docs linter and adjusted docs. 2023-03-01 13:02:57 +01:00
spelling_wordlist [5.0.x] Doc'd support for assistive technologies in the admin. 2023-11-17 11:20:54 +01:00

The documentation in this tree is in plain text files and can be viewed using
any text file viewer.

It uses `ReST`_ (reStructuredText), and the `Sphinx`_ documentation system.
This allows it to be built into other forms for easier viewing and browsing.

To create an HTML version of the docs:

* Install Sphinx (using ``python -m pip install Sphinx`` or some other method).

* In this docs/ directory, type ``make html`` (or ``make.bat html`` on
  Windows) at a shell prompt.

The documentation in ``_build/html/index.html`` can then be viewed in a web
browser.

.. _ReST: https://docutils.sourceforge.io/rst.html
.. _Sphinx: https://www.sphinx-doc.org/