Changeset fd6da93 in OpenWorkouts-current for ow/schemas
- Timestamp:
- Feb 26, 2019, 11:11:43 AM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- a4e4799
- Parents:
- d411dae
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/schemas/user.py
rd411dae rfd6da93 4 4 5 5 from ow.schemas.blob import FieldStorageBlob 6 from ow.utilities import get_available_locale_names 6 7 7 8 _ = TranslationStringFactory('OpenWorkouts') … … 76 77 whitelist=['jpg', 'jpeg', 'png', 'gif']) 77 78 timezone = validators.OneOf(common_timezones, if_missing='UTC') 79 locale = validators.OneOf( 80 [locale[0] for locale in get_available_locale_names()], 81 if_missing='en' 82 ) 78 83 79 84
Note: See TracChangeset
for help on using the changeset viewer.