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
3549d848
Commit
3549d848
authored
6 years ago
by
Todd Dembrey
Browse files
Options
Downloads
Patches
Plain Diff
Use format_html incase the lead has a bad name
parent
f1a01519
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/funds/tables.py
+3
-2
3 additions, 2 deletions
opentech/apply/funds/tables.py
with
3 additions
and
2 deletions
opentech/apply/funds/tables.py
+
3
−
2
View file @
3549d848
...
...
@@ -3,6 +3,7 @@ import textwrap
from
django
import
forms
from
django.contrib.auth
import
get_user_model
from
django.db.models
import
OuterRef
,
Subquery
,
F
,
Q
from
django.utils.html
import
format_html
from
django.utils.text
import
mark_safe
,
slugify
import
django_filters
as
filters
...
...
@@ -54,7 +55,7 @@ class SubmissionsTable(tables.Table):
return
value
.
get_full_name
()
def
render_phase
(
self
,
value
):
return
mark_safe
(
f
'
<span>
{
value
}
</span>
'
)
return
format_html
(
'
<span>{}</span>
'
,
value
)
def
render_comments
(
self
,
value
):
request
=
self
.
context
[
'
request
'
]
...
...
@@ -81,7 +82,7 @@ class AdminSubmissionsTable(SubmissionsTable):
sequence
=
fields
+
(
'
comments
'
,)
def
render_lead
(
self
,
value
):
return
mark_safe
(
f
'
<span>
{
value
}
</span>
'
)
return
format_html
(
'
<span>{}</span>
'
,
value
)
def
get_used_rounds
(
request
):
...
...
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