diff --git a/helpdesk/management/commands/escalate_tickets.py b/helpdesk/management/commands/escalate_tickets.py index 8abc6dcd..82cb1948 100644 --- a/helpdesk/management/commands/escalate_tickets.py +++ b/helpdesk/management/commands/escalate_tickets.py @@ -85,7 +85,7 @@ def escalate_tickets(queues, verbose): Q_OPEN_STATUSES = Q() for open_status in Ticket.OPEN_STATUSES: - q_open_statuses |= Q(status=open_status) + Q_OPEN_STATUSES |= Q(status=open_status) for t in q.ticket_set.filter( Q_OPEN_STATUSES diff --git a/helpdesk/views/feeds.py b/helpdesk/views/feeds.py index 06656831..5460f4fa 100644 --- a/helpdesk/views/feeds.py +++ b/helpdesk/views/feeds.py @@ -21,7 +21,7 @@ User = get_user_model() Q_OPEN_STATUSES = Q() for open_status in Ticket.OPEN_STATUSES: - q_open_statuses |= Q(status=open_status) + Q_OPEN_STATUSES |= Q(status=open_status) class OpenTicketsByUser(Feed):