summaryrefslogtreecommitdiff
path: root/tests/model_fields/test_charfield.py
AgeCommit message (Collapse)Author
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