Add setting determining invoice number format (#193)

This commit is contained in:
Tobias Kunze
2016-08-16 21:18:40 +02:00
committed by Raphael Michel
parent 6628d65f9a
commit 4191f93ece
11 changed files with 177 additions and 8 deletions

View File

@@ -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: