Skip to content
Snippets Groups Projects
Commit cde95537 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Issue: #528 Do not set comment field on reviews as required.

parent 4b878dc8
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,11 @@ class RecommendationCommentsBlock(ReviewMustIncludeFieldBlock): ...@@ -69,6 +69,11 @@ class RecommendationCommentsBlock(ReviewMustIncludeFieldBlock):
icon = 'openquote' icon = 'openquote'
template = 'stream_forms/render_unsafe_field.html' template = 'stream_forms/render_unsafe_field.html'
def get_field_kwargs(self, struct_value):
kwargs = super().get_field_kwargs(struct_value)
kwargs['required'] = False
return kwargs
class ReviewCustomFormFieldsBlock(CustomFormFieldsBlock): class ReviewCustomFormFieldsBlock(CustomFormFieldsBlock):
char = CharFieldBlock(group=_('Fields')) char = CharFieldBlock(group=_('Fields'))
......
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