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

fix reverse urls

parent ef8256ee
No related branches found
No related tags found
1 merge request!42Set price correct for event registration
Pipeline #130158 failed
......@@ -311,10 +311,10 @@ class EventRegistration(ExtensibleModel):
cost = models.IntegerField(verbose_name=_("Cost in €"), null=True, blank=True)
def save(self):
def save(self, *args, **kwargs):
if not self.cost:
self.cost = self.event.cost
super().save(*args, **kwargs)
def mark_checked_in(self):
if not self.checked_in:
......
......@@ -169,7 +169,7 @@ class EventRegistrationEditView(PermissionRequiredMixin, AdvancedEditView):
form_class = EditEventRegistrationForm
permission_required = "paweljong.change_registration_rule"
template_name = "paweljong/event_registration/edit.html"
success_url = reverse_lazy("registrations")
success_url = reverse_lazy("index")
success_message = _("The event registration has been saved.")
......@@ -235,7 +235,7 @@ class EventRegistrationDeleteView(PermissionRequiredMixin, AdvancedDeleteView):
model = EventRegistration
permission_required = "paweljong.delete_eventregistration_rule"
template_name = "core/pages/delete.html"
success_url = reverse_lazy("registrations")
success_url = reverse_lazy("index")
success_message = _("The registration has been deleted.")
......@@ -850,7 +850,7 @@ class SendMailFromRegistration(PermissionRequiredMixin, FormView):
template_name = "paweljong/event_registration/notification.html"
permission_required = "paweljong.send_notification_mail_rule"
form_class = RegistrationNotificationForm
success_url = reverse_lazy("registrations")
success_url = reverse_lazy("index")
def form_valid(self, form):
......
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