Changes between Initial Version and Version 1 of Ticket #28033, comment 5


Ignore:
Timestamp:
Apr 6, 2017, 5:01:08 AM (7 years ago)
Author:
Rémy Hubscher

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28033, comment 5

    initial v1  
    11As 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{{{
    24CHOOSE_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"),
    68]
     9}}}
     10
    711The 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.
    812Could you confirm or provide some other cases?
Back to Top