mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-12-22 13:02:49 -08:00
fix home and episode order_by
This commit is contained in:
parent
26d758319b
commit
6d56315e43
@ -5,7 +5,7 @@ from tp.settings import IMAGES_URL, MP3_URL
|
||||
|
||||
|
||||
def home(request):
|
||||
episodes = Episode.objects.all()
|
||||
episodes = Episode.objects.all().order_by('-pub_date')
|
||||
return render(
|
||||
request,
|
||||
'audio/index.html',
|
||||
@ -14,7 +14,7 @@ def home(request):
|
||||
|
||||
def feed(request, pk, slug):
|
||||
feed = Feed.objects.get(id=pk)
|
||||
episodes = feed.episode_set.all()
|
||||
episodes = feed.episode_set.all().order_by('-pub_date')
|
||||
return render(
|
||||
request, 'audio/index.html',
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user