Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Jul 15, 2024
1 parent 5a9587a commit 2406492
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rdmo/projects/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 2406492

Please sign in to comment.