#35994: WeekArchiveView sometimes gets the next week year wrong in the last
week of
the year
------------------------------------+--------------------------------------
Reporter: Nigel Metheringham | Owner: (none)
Type: Bug | Status: closed
Component: Generic views | Version: 5.1
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------------+--------------------------------------
Changes (by Nigel Metheringham):
* resolution: => invalid
* status: new => closed
Comment:
Apologies. When looking deeper into this I discovered that I had the
following in the template:-
{{{
<li class="page-item">
<a class="page-link"
href="{% url 'ticket-schedule-week' next_week.year
next_week.isocalendar.week %}">Next »</a>
</li>
}}}
when it should have been
{{{
<li class="page-item">
<a class="page-link"
href="{% url 'ticket-schedule-week'
next_week.isocalendar.year next_week.isocalendar.week %}">Next »</a>
</li>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35994#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070193b10143f1-7fb1d39d-e4d1-4e75-a99e-cf6d84bccaee-000000%40eu-central-1.amazonses.com.