Code

Changes between Initial Version and Version 1 of Ticket #17829, comment 1


Ignore:
Timestamp:
03/04/12 23:44:32 (2 years ago)
Author:
aaugustin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17829, comment 1

    initial v1  
    1 `list_filter` on a DateTimeField is mostly useful if applied to a field that stores a creation or modification date. 
     1`list_filter` on a `DateTimeField` is mostly useful if applied to a field that stores a creation or modification date. 
    22 
    3 It's Monday, 8am. Do you expect to see the updates of last Monday? Probably yes. 
     3It's Monday, 8am. Do you expect to see the updates of last Monday? Probably yes. The filter actually does "Past seven days (complete) + current day (partial)", which was shortened to "Past 7 days" for readability. 
    44 
    5 In this case, the current code shows 7,33 days worth of data in this case (assuming you have no dates in the future). Your "easy fix" would show 6,33 days instead. I'm not convinced this would be significantly more correct. 
     5In the example above, the current code shows 7,33 days worth of data (assuming you have no data in the future). Your "easy fix" would show 6,33 days instead. I'm not convinced this would be significantly more correct. 
    66 
    77We'd need a good reason, good enough to warrant breaking backwards compatibility, to change this.