I have this line of code in my views that allows me to display a group of items by date (I've also reversed the order so the most recent displays first):
currentlinks = Current.objects.order_by('date_added').reverse()[:5]
this works fine —
however, when I concatenate the "order_by" code with a filter...
currentsources = Current.objects.filter(source__exact='bbc').order_by('date_added')
this doesn't work? does anyone know why? poor syntax perhaps, or am I just not understanding how this is supposed to work?