From 6a5dc9b62cb177803cd733d5f06c3cc9c131ce1a Mon Sep 17 00:00:00 2001 From: Lukas Kucharczyk Date: Thu, 8 Aug 2024 15:02:39 +0200 Subject: [PATCH] even more formatting --- games/forms.py | 2 +- games/templates/list_sessions.html | 4 ++-- games/templates/view_game.html | 14 +++++++++----- games/templatetags/markdown_extras.py | 2 +- games/views.py | 15 ++------------- timetracker/urls.py | 1 + 6 files changed, 16 insertions(+), 22 deletions(-) diff --git a/games/forms.py b/games/forms.py index 1104d54..979d990 100644 --- a/games/forms.py +++ b/games/forms.py @@ -1,7 +1,7 @@ from django import forms from django.urls import reverse -from common.utils import safe_getattr +from common.utils import safe_getattr from games.models import Device, Edition, Game, Platform, Purchase, Session custom_date_widget = forms.DateInput(attrs={"type": "date"}) diff --git a/games/templates/list_sessions.html b/games/templates/list_sessions.html index 0f62f50..6aae78d 100644 --- a/games/templates/list_sessions.html +++ b/games/templates/list_sessions.html @@ -1,4 +1,4 @@ -{% extends 'base.html' %} +{% extends "base.html" %} {% load static %} {% block title %} {{ title }} @@ -15,7 +15,7 @@ hx-target=".responsive-table tbody" onClick="document.querySelector('#last-session-start').classList.add('invisible')" class="{% if last.timestamp_end == null %}invisible{% endif %}"> - {% include 'components/button_start.html' with text=last.purchase title="Start session of last played game" only %} + {% include "components/button_start.html" with text=last.purchase title="Start session of last played game" only %} {% endif %} diff --git a/games/templates/view_game.html b/games/templates/view_game.html index bb566c0..41c4b94 100644 --- a/games/templates/view_game.html +++ b/games/templates/view_game.html @@ -100,12 +100,16 @@ {% if edition.wikidata %} {% endif %} {% url 'edit_edition' edition.id as edit_url %} - {% include 'components/edit_button.html' with edit_url=edit_url %} + {% include "components/edit_button.html" with edit_url=edit_url %}