diff --git a/aleksis/apps/paweljong/models.py b/aleksis/apps/paweljong/models.py index 70a97b5e41a7d4605373a588a0f364d5198585b7..292dbc4f3a262b75c8831defba4feee3029c69c2 100644 --- a/aleksis/apps/paweljong/models.py +++ b/aleksis/apps/paweljong/models.py @@ -311,10 +311,6 @@ class EventRegistration(ExtensibleModel): cost = models.IntegerField(verbose_name=_("Cost in €"), null=True, blank=True) - def save(self, *args, **kwargs): - if self.cost is not None: - self.cost = self.event.cost - super().save(*args, **kwargs) def mark_checked_in(self): if not self.checked_in: @@ -420,6 +416,8 @@ class EventRegistration(ExtensibleModel): def save(self, *args, **kwargs): self.event.sync_group_members() + if self.cost is None: + self.cost = self.event.cost super().save(*args, **kwargs) def delete(self, *args, **kwargs):