only last 50 chat messages are loaded on page load
This commit is contained in:
parent
e92e5686c3
commit
5f5591736f
|
@ -58,7 +58,7 @@ def quest(request, quest_id, page_num='0'):
|
|||
quest=quest, appendix=False).order_by('page_num')
|
||||
appendices = Page.objects.filter(
|
||||
quest=quest, appendix=True).order_by('title')
|
||||
chat_messages = quest.message_set.all()
|
||||
chat_messages = reversed(quest.message_set.all().order_by('-id')[:50])
|
||||
try:
|
||||
page = Page.objects.get(quest=quest, page_num=page_num)
|
||||
except Page.DoesNotExist:
|
||||
|
|
Loading…
Reference in New Issue
Block a user