From 24064924a4a5fc7a5257b74bb33372199ec3d715 Mon Sep 17 00:00:00 2001 From: Jochen Klar Date: Mon, 15 Jul 2024 18:15:08 +0200 Subject: [PATCH] Fix comment --- rdmo/projects/validators.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rdmo/projects/validators.py b/rdmo/projects/validators.py index 714b1c1287..548c00bf0d 100644 --- a/rdmo/projects/validators.py +++ b/rdmo/projects/validators.py @@ -35,8 +35,7 @@ def __call__(self, data, serializer): 'collection_index': data.get('collection_index') } - # for checkboxes, check only values with the same option - # get the widget_type from the put request + # for checkboxes, check only values with the same option. the widget_type is provided with the post request widget_type = serializer.context['view'].request.data.get('widget_type') if widget_type == 'checkbox': get_kwargs['option'] = data.get('option')