﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35994	WeekArchiveView sometimes gets the next week year wrong in the last week of the year	Nigel Metheringham		"In some cases - for example ISO or Monday start weeks in 2024, the last week of the year has the next week set as week 1 of 2024, and not week 1 of 2025.

Sample code:

{{{
class TicketScheduleWeekView(WeekArchiveView):
    """"""View of tickets scheduled for a week.""""""

    # queryset = ## Queryset deleted as its quite large
    date_field = ""date""
    week_format = ""%W""
    year_format = ""%Y""
    allow_future = True
    allow_empty = True
}}}

Given the following URL definition:
{{{
path(""ticketschedule/<int:year>/<int:week>/"", views.TicketScheduleWeekView.as_view(), name=""ticket-schedule-week""), 
}}}

We get for end of year links:-
- `/ticketschedule/2023/51/` - next week link is `/ticketschedule/2023/52/`
- `/ticketschedule/2024/52/` - next week link is `/ticketschedule/2024/1/`
- `/ticketschedule/2024/51/` - next week link is `/ticketschedule/2024/52/`
- `/ticketschedule/2024/52/` - next week link is  `/ticketschedule/2024/1/`  **wrong**
"	Bug	closed	Generic views	5.1	Normal	invalid			Unreviewed	0	0	0	0	0	0
