mirror of
https://git.sdbs.cz/sdbs/pile.git
synced 2025-05-10 00:12:18 +00:00
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)
|
base_context_data = super(IndexView, self).get_context_data(**kwargs)
|
||||||
|
|
||||||
return {
|
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,
|
'random_document': choice(Document.objects.all()[5:]) if Document.objects.count() > 0 else None,
|
||||||
**base_context_data
|
**base_context_data
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue