Pass ReviewRequestPageDataMixin to fields that require it during render
Review Request #10083 — Created July 13, 2018 and discarded
We have several fields that use
ReviewRequestPageDataMixin
, but they
only really use it for rendering change description entries. As such,
the review request page data is not passed to them during rendering. If
we wish to take advantage of all the queries that have been done, we
need to pass in this data.The review request page data is now passed into the template context of
the review detail view and is used by the
{% for_review_request_field %}
template tag.
Ran unit tests.
Description | From | Last Updated |
---|---|---|
F841 local variable 'review_request' is assigned to but never used |
reviewbot | |
E501 line too long (84 > 79 characters) |
reviewbot | |
F841 local variable 'review_request' is assigned to but never used |
reviewbot | |
E501 line too long (84 > 79 characters) |
reviewbot | |
F821 undefined name 'data' |
reviewbot | |
E501 line too long (87 > 79 characters) |
reviewbot |
- Change Summary:
-
Fix unit test fails.
- Commit:
-
990055c1fb2fc56e4abdcec01d9f3692ce98d88f379b39aca9fad01987b793f138225b09f84c716b