[extensions-web: 65/75] Remove another silly error



commit 4ee7c6e1862515be1bad9da5c8bf70ed933d1376
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Sep 22 16:25:19 2011 -0400

    Remove another silly error
    
    I always think that a related object set is a QS, not a RelatedManager.

 sweettooth/review/views.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index e544b6d..4b7b72d 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -107,7 +107,7 @@ class ReviewVersionView(DetailView):
         previous_versions = CodeReview.objects.filter(version__extension=self.object.extension)
 
         # Other reviews on the same version
-        previous_reviews = self.object.reviews
+        previous_reviews = self.object.reviews.all()
 
         context.update(dict(previous_versions=previous_versions,
                             previous_reviews=previous_reviews))



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