From 6328d835eefa67e6f61cd8c8ca6f5225e071db06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 9 Jul 2024 23:04:14 +0200 Subject: [PATCH] Fix formatting --- games/models.py | 8 +++++--- games/urls.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/games/models.py b/games/models.py index da039cd..10335c9 100644 --- a/games/models.py +++ b/games/models.py @@ -112,9 +112,11 @@ class Purchase(models.Model): def __str__(self): additional_info = [ self.get_type_display() if self.type != Purchase.GAME else "", - f"{self.edition.platform} version on {self.platform}" - if self.platform != self.edition.platform - else self.platform, + ( + f"{self.edition.platform} version on {self.platform}" + if self.platform != self.edition.platform + else self.platform + ), self.edition.year_released, self.get_ownership_type_display(), ] diff --git a/games/urls.py b/games/urls.py index 7ea9411..30c465e 100644 --- a/games/urls.py +++ b/games/urls.py @@ -35,7 +35,7 @@ urlpatterns = [ views.add_purchase, name="add_purchase_for_edition", ), - path("session/add", views.add_session, name="add_session"), + path("session/add", views.add_session, name="add_session"), path( "session/add/for-purchase/", views.add_session,