mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Multiple select
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user