Skip to content
Snippets Groups Projects
Commit 8cf626cb authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Check is cost is not None

parent 7450667b
No related branches found
No related tags found
1 merge request!42Set price correct for event registration
Pipeline #130681 failed
......@@ -312,7 +312,7 @@ class EventRegistration(ExtensibleModel):
cost = models.IntegerField(verbose_name=_("Cost in €"), null=True, blank=True)
def save(self, *args, **kwargs):
if not self.cost:
if self.cost is not None:
self.cost = self.event.cost
super().save(*args, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment