increase recent document view to 10
This commit is contained in:
parent
96db9a1a58
commit
df87a2d13c
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class IndexView(BasePileView):
|
|||
base_context_data = super(IndexView, self).get_context_data(**kwargs)
|
||||
|
||||
return {
|
||||
'recent_documents': Document.objects.order_by('-uploaded')[:5],
|
||||
'recent_documents': Document.objects.order_by('-uploaded')[:10],
|
||||
'random_document': choice(Document.objects.all()[5:]) if Document.objects.count() > 0 else None,
|
||||
**base_context_data
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue