summaryrefslogtreecommitdiff
path: root/tests/model_fields/test_charfield.py
AgeCommit message (Collapse)Author
2023-09-14Fixed #24561 -- Added support for callables on model fields' choices.Natalia
2023-03-21Fixed #34388 -- Allowed using choice enumeration types directly on model and ↵T. Franzel
form fields.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-12-10Fixed #32178 -- Allowed database backends to skip tests and mark expected ↵Hasan Ramezani
failures. Co-authored-by: Tim Graham <timograham@gmail.com>
2020-09-25Used assertRaisesMessage() in CharField tests.David Smith
2020-09-21Fixed #31777 -- Added support for database collations to Char/TextFields.Tom Carrick
Thanks Simon Charette and Mariusz Felisiak for reviews.
2019-10-21Replaced deprecated assertEquals() with assertEqual().Jon Dufresne
2019-09-04Fixed #27910 -- Added enumeration helpers for use in Field.choices.Shai Berger
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>
2018-04-20Moved tests for model Field.get_choices().Tim Graham
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-09-19Fixed #27219 -- Changed cx_Oracle client encoding to AL32UTF8 to allow ↵Dmitry Medvinsky
4-byte characters.
2016-03-23Split model_fields tests into different files.Tim Graham