pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/EuroPython/djep/pull/96

ssets/global-0bd78641c0a1f3e0.css" /> Use latest revision's title in all review actions by lehmannro · Pull Request #96 · EuroPython/djep · GitHub
Skip to content
This repository was archived by the owner on Jan 17, 2020. It is now read-only.

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

Open
lehmannro wants to merge 3 commits intoEuroPython:developfrom
lehmannro:fix/ticket95
Open

Use latest revision's title in all review actions#96
lehmannro wants to merge 3 commits intoEuroPython:developfrom
lehmannro:fix/ticket95

Conversation

@lehmannro
Copy link
Copy Markdown

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
Copy Markdown
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.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy