Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Use latest revision's title in all review actions #96

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

lehmannro
Copy link

This hotfixes #95 and should replace all improper uses of the proposal's title with the latest proposal version's title.

A cleaner approach would be supplying a non-null template variable which points to the latest proposal, whether there were revisions or not, and just referring to that proposal's title. This would also clean up the whole {% if proposal_version %}{{ proposal_version.yadda }}{% else %}{{ proposal.yadda }}{% endif %} business all over the templates.

These commits go untested.

@MarkusH
Copy link
Contributor

MarkusH commented Mar 18, 2014

Nice idea to clean up the templates. However, I'd move the decision weather there is a proposal version or not, as a property to the reviews.Proposal model and either return the version or the proposal itself. This would clean up a lot of code in the views too.

Have a look at the ProposalVersionManager on how to get the latest version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants