Major redesign #73

Merged
lukas merged 45 commits from manage-purchases into main 2024-09-02 15:47:44 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 238e4839e0 - Show all commits

View File

@ -1,5 +1,5 @@
from datetime import datetime from datetime import datetime
from typing import Any, Callable, TypedDict from typing import Any, Callable
from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import login_required
from django.db.models import Avg, Count, ExpressionWrapper, F, Prefetch, Q, Sum, fields from django.db.models import Avg, Count, ExpressionWrapper, F, Prefetch, Q, Sum, fields
@ -26,7 +26,7 @@ from .forms import (
PurchaseForm, PurchaseForm,
SessionForm, SessionForm,
) )
from .models import Edition, Game, Platform, Purchase, PurchaseQueryset, Session from .models import Edition, Game, Platform, Purchase, Session
dateformat: str = "%d/%m/%Y" dateformat: str = "%d/%m/%Y"
datetimeformat: str = "%d/%m/%Y %H:%M" datetimeformat: str = "%d/%m/%Y %H:%M"
@ -80,7 +80,7 @@ def add_session(request: HttpRequest, purchase_id: int = 0) -> HttpResponse:
def use_custom_redirect( def use_custom_redirect(
func: Callable[..., HttpResponse] func: Callable[..., HttpResponse],
) -> Callable[..., HttpResponse]: ) -> Callable[..., HttpResponse]:
""" """
Will redirect to "return_path" session variable if set. Will redirect to "return_path" session variable if set.