1👍
✅
The "human-readable" value can be displayed by using get_FOO_display
, so:
{{ schedule.get_day_of_week_display }}
0👍
You could opt for generating a days only list on the fly
choices=[i[1] for i in DAYS_OF_WEEK]
- [Answered ]-How to get return value !=0 out of Django shell in case of error
- [Answered ]-How to send message from django server to a nodejs server and receive the reply?
- [Answered ]-Mock async_task of Django-q
- [Answered ]-Django – 'module' object has no attribute 'BigIntegerField'
- [Answered ]-Django: Error-MultipleObjectsReturned while generating a generic list view
Source:stackexchange.com