Changes between Initial Version and Version 1 of Ticket #28209, comment 5
- Timestamp:
- May 15, 2017, 3:09:15 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28209, comment 5
initial v1 1 1 Sorry, I'm not sure if I've done enough. Waiting for some discussion around this before I continue making changes. 2 2 basically datetime will throw value errors whenever the year crosses 9999. 3 Wherever a datetime is manipulated to increment the date to cross10000 will be affected.3 Wherever a datetime is manipulated to the date to cross year 10000 will be affected. 4 4 5 5 {{{ … … 8 8 DayMixin._get_next_day(self, date) 9 9 WeekMixin._get_next_week(self, date) 10 DateMixin._make_date_lookup_arg(self, value) 10 11 }}} 11 12 While 404 would be an appropriate response for dates crossing the Year 9999 … … 13 14 if I throw 404 for each mixin the behaviour will be slightly odd. since 14 15 ''/dates/books/9999/'' will throw a 404 but ''/dates/books/9999/01'' will not 16 17 In case of DateMixin._make_date_lookup_arg method, the datetime object does not actually throw an error, but it behaves in an unexpected way and cycles to a different date altogether 18 eg. /dates/books/10000/ causes the date argument to become the 2008 but the view will not return a 500.