Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Order by position *ascending* lower position is better.

  • Loading branch information...
commit ecc47e3ea0adc94b6da2729636e8cdfa0591ef14 1 parent b46b2ed
Alex Gaynor authored
1  .gitignore
... ...
@@ -1,3 +1,4 @@
1 1
 MANIFEST
2 2
 dist
3 3
 *.py[co]
  4
+agon.egg-info
4  agon/templatetags/agon_tags.py
@@ -51,7 +51,7 @@ def render(self, context):
51 51
         else:
52 52
             if model is None:
53 53
                 raise incorrect_value
54  
-        queryset = TargetStat.objects.order_by("-position")
  54
+        queryset = TargetStat.objects.order_by("position")
55 55
         if issubclass(model, User):
56 56
             queryset = queryset.exclude(target_user=None)
57 57
             queryset = queryset.select_related("target_user")
@@ -62,7 +62,7 @@ def render(self, context):
62 62
             # underlying cache with a single query using __in)
63 63
             ct = ContentType.objects.get_for_model(model)
64 64
             queryset.filter(target_content_type=ct)
65  
-
  65
+        
66 66
         if self.limit is not None:
67 67
             limit = self.limit.resolve(context)
68 68
             queryset = queryset[:limit]

0 notes on commit ecc47e3

Please sign in to comment.
Something went wrong with that request. Please try again.