forked from CGM_Public/pretix_original
Refs #340 -- Allow order changes for paid orders if they don't change the total
This commit is contained in:
@@ -190,6 +190,10 @@ class Order(LoggedModel):
|
||||
"""
|
||||
return '{event}-{code}'.format(event=self.event.slug.upper(), code=self.code)
|
||||
|
||||
@property
|
||||
def changable(self):
|
||||
return self.status in (Order.STATUS_PAID, Order.STATUS_PENDING)
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if not self.code:
|
||||
self.assign_code()
|
||||
|
||||
Reference in New Issue
Block a user