mirror of
https://gitlab.federez.net/re2o/re2o
synced 2024-06-02 07:52:23 +00:00
Fix: Deposit creation form when no deposit items exist
This commit is contained in:
parent
46c8cbb182
commit
dfc58a281e
|
@ -61,8 +61,8 @@ class Deposit(RevMixin, AclMixin, models.Model):
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(Deposit, self).__init__(*args, **kwargs)
|
super(Deposit, self).__init__(*args, **kwargs)
|
||||||
self.__original_item = self.item
|
self.__original_item = getattr(self, "item", None)
|
||||||
self.__original_deposit_amount = self.deposit_amount
|
self.__original_deposit_amount = getattr(self, "deposit_amount", None)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
if self.returned:
|
if self.returned:
|
||||||
|
|
Loading…
Reference in a new issue