Add DictValue example

This commit is contained in:
Arseny Sokolov 2020-06-17 23:38:48 +08:00 committed by GitHub
parent 601d52218a
commit b9648bddb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -353,6 +353,10 @@ Type values
DEPARTMENTS = values.DictValue({
'it': ['Mike', 'Joe'],
})
Override using environment variables like this::
DJANGO_DEPARTMENTS={'it':['Mike','Joe'],'hr':['Emma','Olivia']}
Validator values
^^^^^^^^^^^^^^^^