0.1.19
support tickets routines
This commit is contained in:
13
ChatServiceApp/funcs.py
Normal file
13
ChatServiceApp/funcs.py
Normal 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
|
||||
Reference in New Issue
Block a user