Skip to content

Commit

Permalink
Fixed the kwargs passing issue for adding event to the dataset. (#2318)
Browse files Browse the repository at this point in the history
This is a fix for a small bug - introduced while implementing the
feature updating the allowed datasets while creating an event.

It's a small change adding a `user` kwargs to the `eventDatasetForm`
  • Loading branch information
tompollard authored Oct 24, 2024
2 parents 5fdcd77 + 9537217 commit f9c0f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physionet-django/console/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3495,7 +3495,7 @@ def event_management(request, event_slug):
# handle the add dataset form(s)
if request.method == "POST":
if "add-event-dataset" in request.POST.keys():
event_dataset_form = EventDatasetForm(request.POST)
event_dataset_form = EventDatasetForm(request.POST, user=request.user)
if event_dataset_form.is_valid():
active_datasets = selected_event.datasets.filter(
dataset=event_dataset_form.cleaned_data["dataset"],
Expand Down

0 comments on commit f9c0f0b

Please sign in to comment.