Skip to main content

Types

Added in 1.0.1 Changed in 1.1.0

SettingType is an IntEnum with ChoicesEnumMixin. Members are integers (STRING = 0). Labels live on label(). Django fields use SettingType.choices(). The database always stores text (or NULL). The service converts the snapshot to typed values.

TypeStored formatRuntime value
STRINGtextstr
BOOLEANTrue / true / 1 / yesbool
INTEGERdigitsint
FLOATdecimal textfloat
DECIMALdecimal textDecimal
SECUREencrypted textdecrypted str
DATEDD.MM.YYYYdate
TIMEHH:MM:SStime
DATETIMEDD.MM.YYYY HH:MM:SSaware datetime
STRING_ARRAYa;b;clist[str]
INTEGER_ARRAY1;2;3list[int]
FLOAT_ARRAY / DECIMAL_ARRAYsemicolon-separatedlist[float] / list[Decimal]
*_CHOICESselected valuetyped scalar
*_MULTIPLE_CHOICESJSON listlist
JSONJSON or a Python literalparsed object
UUIDUUID textUUID
COLORunusedparse error

JSON first uses json.loads. A Python literal with single quotes is the fallback. Replacing ' with " is not used: it breaks valid JSON that contains an apostrophe.