django1/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 Fixed #9475 -- Allowed RelatedManager.add(), create(), etc. for m2m with a through model. 2019-01-15 11:12:17 -05:00
aggregation.txt Fixed #30347 -- Fixed typo in docs/topics/db/aggregation.txt. 2019-04-13 12:35:31 +02:00
index.txt Refs #28595 -- Added a hook to add execute wrappers for database queries. 2017-09-21 12:13:09 -04:00
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 Fixed #28584 -- Dropped support for SQLite < 3.7.15. 2017-10-03 10:42:18 -04:00