[extensions-web] Fix an issue with "old version" detection.



commit b114ee18a01342d168f233fc0f92b63f63eb21fd
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Oct 19 18:09:24 2011 -0400

    Fix an issue with "old version" detection.

 sweettooth/extensions/views.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index aad9e46..bc793ab 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -93,8 +93,8 @@ def extension_version_view(request, obj, **kwargs):
                    is_rejected = status in models.REJECTED_STATUSES,
                    status = status)
 
-    if not is_preview:
-        context['old_version'] = version != extension.latest_version
+    if extension.latest_version is not None:
+        context['old_version'] = version.version < extension.latest_version.version
     return render(request, template_name, context)
 
 @ajax_view



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]