2👍
✅
Django 1.11 added a week filter. Can you use that?
If not, you might be able to look at the source code and cherry pick it.
As a last resort, you could use Python to calculate the date range for the same week last year, then pass those dates as filters to the Django query.
Source:stackexchange.com