Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
249265ca
Commit
249265ca
authored
6 years ago
by
Todd Dembrey
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opentech/apply/review/views.py
+3
-2
3 additions, 2 deletions
opentech/apply/review/views.py
with
3 additions
and
2 deletions
opentech/apply/review/views.py
+
3
−
2
View file @
249265ca
...
...
@@ -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
,
RichText
Field
Block
)):
if
not
isinstance
(
field
.
block
,
(
RecommendationBlock
,
RichTextBlock
)):
question
=
field
.
value
[
'
field_label
'
]
review_data
.
setdefault
(
field
.
id
,
{
'
question
'
:
question
,
'
answers
'
:
list
()})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment