Changes between Initial Version and Version 1 of Ticket #28033, comment 5
- Timestamp:
- Apr 6, 2017, 5:01:08 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28033, comment 5
initial v1 1 1 As I understand, the only cases when we would need this as a callable is when we would like to have something like this: 2 3 {{{ 2 4 CHOOSE_DATE = [ 3 ("2017-04-05", "Yesterday"),4 ("2017-04-06", "Today"),5 ("2017-04-07", "Tomorrow"),5 ("2017-04-05", "Yesterday"), 6 ("2017-04-06", "Today"), 7 ("2017-04-07", "Tomorrow"), 6 8 ] 9 }}} 10 7 11 The dates should be updated every day to reflect the reality. So, it concerns only the date/time, in other cases (e.g. categories or types) we could just use a ForeignKey. 8 12 Could you confirm or provide some other cases?