Fixed sort-order for most played

This commit is contained in:
fergal.moran
2012-09-11 12:21:29 +01:00
parent d993a207c9
commit ed7106b771
10 changed files with 19 additions and 11 deletions

0
_working/create Executable file → Normal file
View File

0
manage.py Executable file → Normal file
View File

View File

@@ -80,7 +80,7 @@ class Mix(_BaseModel):
.order_by('-karma')
elif listing_type == 'mostplayed':
queryset = Mix.objects.all()\
.annotate(karma=Count('likes'))\
.annotate(karma=Count('plays'))\
.order_by('-karma')
elif listing_type == 'recommended':
queryset = Mix.objects.all().order_by( '-id')

0
static/bin/sm/soundmanager2.swf Executable file → Normal file
View File

0
static/bin/sm/soundmanager2_debug.swf Executable file → Normal file
View File

0
static/bin/sm/soundmanager2_flash9.swf Executable file → Normal file
View File

0
static/bin/sm/soundmanager2_flash9_debug.swf Executable file → Normal file
View File

0
static/img/whats-on.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

0
static/js/libs/sm/soundmanager2.js Executable file → Normal file
View File

View File

@@ -1,17 +1,25 @@
{% load socialaccount_tags %}
<div class="well">
<h2>Login to Deep South Sounds</h2>
<div>
<ul class="social_login_providers">
<li>
<a class='signin_button' href='{% provider_login_url "twitter" %}' id='twitter_button'>
</a>
</li>
<li>
<a class='signin_button' id='facebook_button' href="{% provider_login_url "facebook" method="oauth2" %}">
</a>
</li>
</ul>
<div>
<ul class="social_login_providers">
<li>
<a class='signin_button' href='{% provider_login_url "twitter" %}' id='twitter_button'>
</a>
</li>
<li>
<a class='signin_button' id='facebook_button' href="{% provider_login_url "facebook" method="oauth2" %}">
</a>
</li>
</ul>
</div>
<br />
<div>
<span>Please note that using your twitter/facebook account<br/>
to login does not give us access to your private information</span>
</div>
</div>
<br/>
</div>