Add paid information in __str__
This commit is contained in:
parent
c3fb866c73
commit
91ee0b4a48
1 changed files with 1 additions and 1 deletions
|
@ -39,4 +39,4 @@ class Order(TimeStampMixin):
|
||||||
self.amount_50 = 0
|
self.amount_50 = 0
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"Order {self.amount_33}x33cl, {self.amount_50}x50cl for {self.user.username} [{self.state_str()}]"
|
return f"{'Paid' if self.paid else 'Unpaid'} order {self.amount_33}x33cl, {self.amount_50}x50cl for {self.user.username} [{self.state_str()}]"
|
||||||
|
|
Loading…
Reference in a new issue