Skip to content

Commit

Permalink
Merge pull request #62 from molgen/order-publications-v1
Browse files Browse the repository at this point in the history
publications: Order by reverse primay key
  • Loading branch information
donald authored Jan 19, 2020
2 parents 3530f2c + 1f6f24d commit b72aae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpicms/publications/templatetags/publication_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
@register.inclusion_tag('publications/components/list.html', takes_context=True)
def publication_list(context):
return {
'publications': Publication.objects.all()[:5],
'publications': Publication.objects.order_by('-pk')[:5],
'request': context['request'],
}

0 comments on commit b72aae2

Please sign in to comment.