[extensions-web] Fix the "Previous Versions" table on the review page
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Fix the "Previous Versions" table on the review page
- Date: Thu, 10 Nov 2011 19:14:19 +0000 (UTC)
commit 1e745bcf6892bcf95780ccf71a946bbaa3a3845b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Nov 10 14:11:13 2011 -0500
Fix the "Previous Versions" table on the review page
sweettooth/review/templates/review/review.html | 2 +-
sweettooth/review/views.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/review/templates/review/review.html b/sweettooth/review/templates/review/review.html
index 5047e29..d0ed7d5 100644
--- a/sweettooth/review/templates/review/review.html
+++ b/sweettooth/review/templates/review/review.html
@@ -44,7 +44,7 @@
<tbody>
{% for version in previous_versions %}
<tr>
- <td>{{ version.version }}</td>
+ <td><a href="{% url extension-detail pk=version.pk %}">{{ version.version }}</a></td>
<td>
<span class="{{ version.get_status_class }}">{{ version.get_status_display }}</span>
</td>
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index ab475f5..e6b7d94 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -133,7 +133,7 @@ def review_version_view(request, obj):
extension, version = obj.extension, obj
# Reviews on previous versions of the same extension.
- previous_versions = CodeReview.objects.filter(version__extension=extension)
+ previous_versions = extension.versions.order_by('-version')
# Other reviews on the same version
previous_reviews = version.reviews.all()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]