def save(self, *args, **kwargs): if not self.unique_code: self.unique_code = rand_16() super(Ticket, self).save(*args, **kwargs)
def save(self, *args, **kwargs): if not self.unique_code: self.unique_code = rand_16() super(Occurrence, self).save(*args, **kwargs) self.show.save()