mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Add setting determining invoice number format (#193)
This commit is contained in:
committed by
Raphael Michel
parent
6628d65f9a
commit
4191f93ece
@@ -175,7 +175,7 @@ class Order(LoggedModel):
|
||||
An order code which is unique among all events of a single organizer,
|
||||
built by contatenating the event slug and the order code.
|
||||
"""
|
||||
return self.event.slug.upper() + self.code
|
||||
return '{event}-{code}'.format(event=self.event.slug.upper(), code=self.code)
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if not self.code:
|
||||
|
||||
Reference in New Issue
Block a user