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') .order_by('-karma')
elif listing_type == 'mostplayed': elif listing_type == 'mostplayed':
queryset = Mix.objects.all()\ queryset = Mix.objects.all()\
.annotate(karma=Count('likes'))\ .annotate(karma=Count('plays'))\
.order_by('-karma') .order_by('-karma')
elif listing_type == 'recommended': elif listing_type == 'recommended':
queryset = Mix.objects.all().order_by( '-id') 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 %} {% load socialaccount_tags %}
<div class="well"> <div class="well">
<h2>Login to Deep South Sounds</h2> <h2>Login to Deep South Sounds</h2>
<div> <div>
<ul class="social_login_providers"> <div>
<li> <ul class="social_login_providers">
<a class='signin_button' href='{% provider_login_url "twitter" %}' id='twitter_button'> <li>
</a> <a class='signin_button' href='{% provider_login_url "twitter" %}' id='twitter_button'>
</li> </a>
<li> </li>
<a class='signin_button' id='facebook_button' href="{% provider_login_url "facebook" method="oauth2" %}"> <li>
</a> <a class='signin_button' id='facebook_button' href="{% provider_login_url "facebook" method="oauth2" %}">
</li> </a>
</ul> </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> </div>
<br/> <br/>
</div> </div>