Multiple select
This commit is contained in:
parent
cebbe65eef
commit
c4f54d9d5b
3 changed files with 59 additions and 27 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue