support tickets routines
This commit is contained in:
SDE
2023-08-02 14:35:27 +03:00
parent 03f2d90d29
commit 609c140904
7 changed files with 100 additions and 39 deletions

13
ChatServiceApp/funcs.py Normal file
View File

@@ -0,0 +1,13 @@
from .models import *
def get_tickets_wo_manager():
tickets = MsgGroup.objects.filter(enable=True, manager=None)
return tickets
def get_tickets_for_manager(user):
tickets = MsgGroup.objects.filter(enable=True, manager=user)
return tickets