diff --git a/helpdesk/tests/test_per_queue_staff_permission.py b/helpdesk/tests/test_per_queue_staff_permission.py index 60bf113a..e45678c1 100644 --- a/helpdesk/tests/test_per_queue_staff_permission.py +++ b/helpdesk/tests/test_per_queue_staff_permission.py @@ -89,7 +89,7 @@ class PerQueueStaffMembershipTestCase(TestCase): # Superuser self.client.login(username='superuser', password='superuser') - response = self.client.get(reverse('helpdesk_dashboard')) + response = self.client.get(reverse('helpdesk:dashboard')) self.assertEqual( len(response.context['unassigned_tickets']), 3, @@ -112,7 +112,7 @@ class PerQueueStaffMembershipTestCase(TestCase): # Regular users for identifier in self.IDENTIFIERS: self.client.login(username='User_%d' % identifier, password=str(identifier)) - response = self.client.get(reverse('helpdesk_report_index')) + response = self.client.get(reverse('helpdesk:report_index')) self.assertEqual( len(response.context['dash_tickets']), 1, diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index 40b74d31..adc94e23 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -947,7 +947,7 @@ def ticket_list(request): return render(request, 'helpdesk/ticket_list.html', dict( context, - tickets=tickets_qs, + tickets=ticket_qs, default_tickets_per_page=request.user.usersettings.settings.get('tickets_per_page') or 25, user_choices=User.objects.filter(is_active=True, is_staff=True), queue_choices=user_queues,