mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	create Custom history table
This commit is contained in:
		@@ -106,6 +106,10 @@ class Transaction(models.Model):
 | 
			
		||||
        self.destination.save()
 | 
			
		||||
        super().save(*args, **kwargs)
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def total(self):
 | 
			
		||||
        return self.amount*self.quantity
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class MembershipTransaction(Transaction):
 | 
			
		||||
    membership = models.OneToOneField(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user