From 46ec16d8c99990e55f2d6d0adcc6a27994d1e3b6 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Mon, 9 Mar 2020 19:19:56 +0100 Subject: [PATCH] PEP8 compliance --- apps/note/tables.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/note/tables.py b/apps/note/tables.py index fb1548df..e85fcbae 100644 --- a/apps/note/tables.py +++ b/apps/note/tables.py @@ -6,9 +6,10 @@ from django.db.models import F from django_tables2.utils import A from .models.notes import Alias -from .models.transactions import Transaction +from .models.transactions import Transaction, TransactionTemplate from .templatetags.pretty_money import pretty_money + class HistoryTable(tables.Table): class Meta: attrs = { @@ -16,7 +17,7 @@ class HistoryTable(tables.Table): 'table table-condensed table-striped table-hover' } model = Transaction - exclude = ("polymorphic_ctype",) + exclude = ("polymorphic_ctype", ) template_name = 'django_tables2/bootstrap4.html' sequence = ('...', 'total', 'valid') @@ -28,12 +29,13 @@ class HistoryTable(tables.Table): .order_by(('-' if is_descending else '') + 'total') return (queryset, True) - def render_amount(self,value): + def render_amount(self, value): return pretty_money(value) - def render_total(self,value): + def render_total(self, value): return pretty_money(value) + class AliasTable(tables.Table): class Meta: attrs = {