diff --git a/apps/note/models/transactions.py b/apps/note/models/transactions.py index 809e7c44..ed8619d6 100644 --- a/apps/note/models/transactions.py +++ b/apps/note/models/transactions.py @@ -132,6 +132,7 @@ class Transaction(PolymorphicModel): if self.source.pk == self.destination.pk: # When source == destination, no money is transfered + super().save(*args, **kwargs) return created = self.pk is None diff --git a/apps/note/tables.py b/apps/note/tables.py index 08a4d2d9..3306cb3b 100644 --- a/apps/note/tables.py +++ b/apps/note/tables.py @@ -18,7 +18,7 @@ class HistoryTable(tables.Table): } model = Transaction exclude = ("polymorphic_ctype", ) - order_by = ('-created_at', ) + order_by = ('-id', ) template_name = 'django_tables2/bootstrap4.html' sequence = ('...', 'total', 'valid') diff --git a/templates/note/conso_form.html b/templates/note/conso_form.html index 89adb264..5072a1e7 100644 --- a/templates/note/conso_form.html +++ b/templates/note/conso_form.html @@ -30,18 +30,15 @@ Sélection des émitteurs

-