From 2a8a5cd736b521ae1afd74acde75192f37eefe54 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 5 Sep 2020 14:29:40 +0200 Subject: [PATCH] Fix some linting, some complex functions are remaining --- apps/activity/tests/test_activities.py | 1 - apps/note/tables.py | 3 ++- apps/treasury/tests/test_treasury.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/activity/tests/test_activities.py b/apps/activity/tests/test_activities.py index db83fb0e..99eb2ffb 100644 --- a/apps/activity/tests/test_activities.py +++ b/apps/activity/tests/test_activities.py @@ -7,7 +7,6 @@ from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from django.utils import timezone - from activity.models import Activity, ActivityType, Guest, Entry from member.models import Club diff --git a/apps/note/tables.py b/apps/note/tables.py index 0ca50306..f05edc96 100644 --- a/apps/note/tables.py +++ b/apps/note/tables.py @@ -46,7 +46,8 @@ class HistoryTable(tables.Table): } ) - created_at = tables.DateTimeColumn(format='Y-m-d H:i:s', + created_at = tables.DateTimeColumn( + format='Y-m-d H:i:s', attrs={ "td": { "class": "text-nowrap", diff --git a/apps/treasury/tests/test_treasury.py b/apps/treasury/tests/test_treasury.py index 343b91ec..580cfb2d 100644 --- a/apps/treasury/tests/test_treasury.py +++ b/apps/treasury/tests/test_treasury.py @@ -7,7 +7,6 @@ from django.core.exceptions import ValidationError from django.db.models import Q from django.test import TestCase from django.urls import reverse - from member.models import Membership, Club from note.models import SpecialTransaction, NoteSpecial, Transaction from treasury.models import Invoice, Product, Remittance, RemittanceType, SogeCredit