* Fix a few indenting issues

* Fix #11: BUG Port number in POP3 isn't used
* Fix #11: ENHANCEMENT Use SSL in POP3 and IMAP (requires database change)
This commit is contained in:
Ross Poulton
2008-08-20 01:57:41 +00:00
parent 5040d3d243
commit b5cdea2fab
4 changed files with 42 additions and 16 deletions

View File

@ -32,13 +32,17 @@ def dashboard(request):
with options for them to 'Take' ownership of said tickets.
"""
tickets = Ticket.objects
.filter(assigned_to=request.user)
.exclude(status=Ticket.CLOSED_STATUS)
tickets = Ticket.objects.filter(
assigned_to=request.user,
).exclude(
status=Ticket.CLOSED_STATUS,
)
unassigned_tickets = Ticket.objects
.filter(assigned_to__isnull=True)
.exclude(status=Ticket.CLOSED_STATUS)
unassigned_tickets = Ticket.objects.filter(
assigned_to__isnull=True,
).exclude(
status=Ticket.CLOSED_STATUS,
)
# The following query builds a grid of queues & ticket statuses,
# to be displayed to the user. EG: