Revisions
hypha.apply.funds.views.revisions
¶
RevisionListView
¶
Bases: ListView
get_queryset
¶
Get a queryset of all valid ApplicationRevisions that can be
compared for the current submission
This excludes draft & preview revisions unless draft(s) are the only existing revisions, in which the last draft will be returned in a QuerySet
Returns:
-
–
An
ApplicationRevisionQuerySet
Source code in hypha/apply/funds/views/revisions.py
RevisionCompareView
¶
Bases: DetailView
named_block_order
class-attribute
instance-attribute
¶
compare_revisions
¶
Source code in hypha/apply/funds/views/revisions.py
render_required
¶
Source code in hypha/apply/funds/views/revisions.py
get_context_data
¶
Source code in hypha/apply/funds/views/revisions.py
cleanse_stream_fields
¶
Sanitizes the HTML outside of the h2 heading This is a temp fix and we should move to full HTML diffing
Parameters:
-
a_field–the field to sanitize
-
b_field–the field to sanitize
Returns:
-
List[str]–The sanitized stream field answers in a list
Source code in hypha/apply/funds/views/revisions.py
get_revisions
¶
Get a queryset of all valid ApplicationRevisions that can be
compared for the current submission
This excludes draft & preview revisions unless draft(s) are the only existing revisions, in which the last draft will be returned in a QuerySet
Returns:
-
–
An
ApplicationRevisionQuerySet