Increase number of sessions shown
This commit is contained in:
parent
64a9d2b02e
commit
69126440d3
|
@ -245,7 +245,7 @@ class SessionViewSet(Base, List, Retrieve, Create, Update):
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
if self.action == 'list':
|
if self.action == 'list':
|
||||||
return models.Session.objects.order_by('-datetime')[:20]
|
return models.Session.objects.order_by('-datetime')[:50]
|
||||||
else:
|
else:
|
||||||
return models.Session.objects.all()
|
return models.Session.objects.all()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user