From bf67fc98a7ff319c0cea778d2bfcd216e02d7261 Mon Sep 17 00:00:00 2001 From: SDE Date: Mon, 7 Aug 2023 22:41:14 +0300 Subject: [PATCH] 0.1.41 chat routines --- ChatServiceApp/funcs.py | 4 ++-- templates/blocks/profile/b_chats.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChatServiceApp/funcs.py b/ChatServiceApp/funcs.py index 61da623..423014f 100644 --- a/ChatServiceApp/funcs.py +++ b/ChatServiceApp/funcs.py @@ -37,12 +37,12 @@ def get_ticketsDict_for_staff(user): def get_tickets_wo_manager(): - tickets = MsgGroup.objects.filter(enable=True, manager=None) + tickets = MsgGroup.objects.filter(enable=True, manager=None).order_by('-modifiedDT') return tickets def get_tickets_for_manager(user): - tickets = MsgGroup.objects.filter(enable=True, manager=user) + tickets = MsgGroup.objects.filter(enable=True, manager=user).order_by('-modifiedDT') return tickets \ No newline at end of file diff --git a/templates/blocks/profile/b_chats.html b/templates/blocks/profile/b_chats.html index 47a182c..d362b0f 100644 --- a/templates/blocks/profile/b_chats.html +++ b/templates/blocks/profile/b_chats.html @@ -67,7 +67,7 @@
- Неразобранные тикеты + Чаты:
{% if tickets_wo_manager %} {% for item in tickets_wo_manager %}