mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-25 01:58:54 +02:00
feat(app): allow changing date and datetime format as a user setting
This commit is contained in:
@@ -41,7 +41,7 @@ def monthly_overview(request, month: int, year: int):
|
||||
previous_month = 12 if month == 1 else month - 1
|
||||
previous_year = year - 1 if previous_month == 12 and month == 1 else year
|
||||
|
||||
f = TransactionsFilter(request.GET)
|
||||
f = TransactionsFilter(request.GET, user=request.user)
|
||||
|
||||
return render(
|
||||
request,
|
||||
@@ -64,7 +64,7 @@ def monthly_overview(request, month: int, year: int):
|
||||
def transactions_list(request, month: int, year: int):
|
||||
order = request.GET.get("order")
|
||||
|
||||
f = TransactionsFilter(request.GET)
|
||||
f = TransactionsFilter(request.GET, user=request.user)
|
||||
transactions_filtered = (
|
||||
f.qs.filter()
|
||||
.filter(
|
||||
|
||||
Reference in New Issue
Block a user