Skip to content
Snippets Groups Projects
Commit 7eaa0359 authored by Dan Braghis's avatar Dan Braghis Committed by Todd Dembrey
Browse files

Render the recommendation block correctly

parent f0449650
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,13 @@ class RecommendationBlock(ReviewMustIncludeFieldBlock):
kwargs['choices'] = RECOMMENDATION_CHOICES
return kwargs
def render(self, value, context=None):
data = int(context['data'])
choices = dict(RECOMMENDATION_CHOICES)
context['data'] = choices[data]
return super().render(value, context)
class RecommendationCommentsBlock(ReviewMustIncludeFieldBlock):
name = 'Comments'
......
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