Skip to content
Snippets Groups Projects
Commit 249265ca authored by Todd Dembrey's avatar Todd Dembrey
Browse files

fixup! Dont add rich text data into the listing view

parent 0c499b35
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@ from django.urls import reverse_lazy
from django.utils.decorators import method_decorator
from django.views.generic import ListView, DetailView
from wagtail.core.blocks import RichTextBlock
from opentech.apply.activity.messaging import messenger, MESSAGES
from opentech.apply.funds.models import ApplicationSubmission
from opentech.apply.review.blocks import ScoreFieldBlock, RecommendationBlock
......@@ -15,7 +17,6 @@ from opentech.apply.review.options import RATE_CHOICE_NA, RATE_CHOICES_DICT
from opentech.apply.stream_forms.models import BaseStreamForm
from opentech.apply.users.decorators import staff_required
from opentech.apply.utils.views import CreateOrUpdateView
from opentech.apply.utils.blocks import RichTextFieldBlock
from .models import Review
......@@ -146,7 +147,7 @@ class ReviewListView(ListView):
for field_id in review.fields:
field = review.field(field_id)
data = review.data(field_id)
if not isinstance(field.block, (RecommendationBlock, RichTextFieldBlock)):
if not isinstance(field.block, (RecommendationBlock, RichTextBlock)):
question = field.value['field_label']
review_data.setdefault(field.id, {'question': question, 'answers': list()})
......
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