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')