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

Add get_object-Method to CheckpointView

parent 7aa017e8
No related branches found
No related tags found
No related merge requests found
Pipeline #76946 failed
......@@ -978,6 +978,9 @@ class EventCheckpointView(PermissionRequiredMixin, FormView):
permission_required = "paweljong.event_checkpoint_rule"
form_class = EventCheckpointForm
def get_object(self):
return Event.objects.get(slug=self.kwargs["slug"])
def get_initial(self):
initial = super().get_initial() or {}
if "comment" in self.request.GET:
......
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