1
0
mirror of https://github.com/django/django.git synced 2024-12-24 18:16:19 +00:00
django/docs/topics/db
Shai Berger 72ebe85a26 Fixed #27910 -- Added enumeration helpers for use in Field.choices.
These classes can serve as a base class for user enums, supporting
translatable human-readable names, or names automatically inferred
from the enum member name.

Additional properties make it easy to access the list of names, values
and display labels.

Thanks to the following for ideas and reviews:

Carlton Gibson, Fran Hrženjak, Ian Foote, Mariusz Felisiak, Shai Berger.

Co-authored-by: Shai Berger <shai@platonix.com>
Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-09-04 14:42:49 +02:00
..
examples
aggregation.txt Fixed #30347 -- Fixed typo in docs/topics/db/aggregation.txt. 2019-04-13 12:35:31 +02:00
index.txt
instrumentation.txt Used time.monotonic() instead of time.time() where applicable. 2019-05-08 18:34:22 +02:00
managers.txt Changed tuple choices to list in docs. 2019-05-15 14:31:42 +02:00
models.txt Fixed #27910 -- Added enumeration helpers for use in Field.choices. 2019-09-04 14:42:49 +02:00
multi-db.txt Refs #29683 -- Updated multi-db docs for view permission. 2019-02-25 14:56:36 -05:00
optimization.txt Fixed #30656 -- Added QuerySet.bulk_update() to the database optimization docs. 2019-07-29 09:52:29 +02:00
queries.txt Fixed #30365 -- Fixed syntax highlighting in SQL examples. 2019-04-23 12:37:50 +02:00
search.txt Corrected typo in search docs. (#11673) 2019-08-20 10:37:48 +02:00
sql.txt Removed unnecessary /static from links to PostgreSQL docs. 2019-03-29 21:49:44 -04:00
tablespaces.txt Refs #29548 -- Updated docs for MariaDB support. 2019-05-27 19:59:49 +02:00
transactions.txt