Skip to content

Commit

Permalink
Proper ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkopczuk committed Jul 15, 2011
1 parent 7806dbb commit 8c848d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ATP_Performance_Test/misc/views.py
Expand Up @@ -7,12 +7,12 @@
from ATP_Performance_Test.tuitter.models import Tuit

def index(request):
recent_tuits = InfinitePaginator(Tuit.objects.select_related('user').all(), 10).page(request.page)
recent_tuits = InfinitePaginator(Tuit.objects.select_related('user').all().order_by("-added"), 10).page(request.page)

return render_to_response("index.html", {"recent_tuits": recent_tuits}, context_instance=RequestContext(request))

def index_jinja2(request):
recent_tuits = InfinitePaginator(Tuit.objects.select_related('user').all(), 10).page(request.page)
recent_tuits = InfinitePaginator(Tuit.objects.select_related('user').all().order_by("-added"), 10).page(request.page)

return jinja_render_to_response("index_jinja2.html", {"recent_tuits": recent_tuits}, context_instance=RequestContext(request))

Expand Down
2 changes: 1 addition & 1 deletion ATP_Performance_Test/profiles/views.py
Expand Up @@ -12,6 +12,6 @@ def show(request, id):
except User.DoesNotExist, ValueError:
raise Http404

recent_tuits = InfinitePaginator(Tuit.objects.select_related('user').filter(user=shown_user), 10).page(request.page)
recent_tuits = InfinitePaginator(Tuit.objects.select_related('user').filter(user=shown_user).order_by("-added"), 10).page(request.page)

return render_to_response("profiles/show.html", {"shown_user": shown_user, "recent_tuits": recent_tuits}, context_instance=RequestContext(request))
Expand Up @@ -20,7 +20,7 @@
<collectionProp name="Arguments.arguments">
<elementProp name="users" elementType="Argument">
<stringProp name="Argument.name">users</stringProp>
<stringProp name="Argument.value">300</stringProp>
<stringProp name="Argument.value">100</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="normal_users" elementType="Argument">
Expand All @@ -45,8 +45,8 @@
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="HTTPSampler.domain">direct.askthepony.com</stringProp>
<stringProp name="HTTPSampler.port">8081</stringProp>
<stringProp name="HTTPSampler.domain">quiet-mountain-395.herokuapp.com</stringProp>
<stringProp name="HTTPSampler.port">80</stringProp>
<stringProp name="HTTPSampler.connect_timeout">3000</stringProp>
<stringProp name="HTTPSampler.response_timeout">5000</stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
Expand Down

0 comments on commit 8c848d2

Please sign in to comment.