mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-11-22 01:21:30 -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):
|
def home(request):
|
||||||
episodes = Episode.objects.all()
|
episodes = Episode.objects.all().order_by('-pub_date')
|
||||||
return render(
|
return render(
|
||||||
request,
|
request,
|
||||||
'audio/index.html',
|
'audio/index.html',
|
||||||
@ -14,7 +14,7 @@ def home(request):
|
|||||||
|
|
||||||
def feed(request, pk, slug):
|
def feed(request, pk, slug):
|
||||||
feed = Feed.objects.get(id=pk)
|
feed = Feed.objects.get(id=pk)
|
||||||
episodes = feed.episode_set.all()
|
episodes = feed.episode_set.all().order_by('-pub_date')
|
||||||
return render(
|
return render(
|
||||||
request, 'audio/index.html',
|
request, 'audio/index.html',
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user