mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Auto-set datetime for orders
This commit is contained in:
@@ -1299,6 +1299,8 @@ class Order(Versionable):
|
||||
def save(self, *args, **kwargs):
|
||||
if not self.code:
|
||||
self.assign_code()
|
||||
if not self.datetime:
|
||||
self.datetime = now()
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
def assign_code(self):
|
||||
|
||||
Reference in New Issue
Block a user