diff --git a/helpdesk/tests/test_savequery.py b/helpdesk/tests/test_savequery.py index df95b9e7..1c0244f0 100644 --- a/helpdesk/tests/test_savequery.py +++ b/helpdesk/tests/test_savequery.py @@ -12,7 +12,7 @@ class TestSavingSharedQuery(TestCase): def test_cansavequery(self): """Can a query be saved""" - url = reverse('helpdesk_savequery') + url = reverse('helpdesk:savequery') self.client.login(username=get_staff_user().get_username(), password='password') response = self.client.post(url, diff --git a/helpdesk/tests/test_ticket_lookup.py b/helpdesk/tests/test_ticket_lookup.py index 39999421..4fa30e38 100644 --- a/helpdesk/tests/test_ticket_lookup.py +++ b/helpdesk/tests/test_ticket_lookup.py @@ -27,7 +27,7 @@ class TestKBDisabled(TestCase): # however instead of using that link, we will exercise 'reverse' # to lookup/build the URL from the ticket info we have # http://example.com/helpdesk/view/?ticket=q1-1&email=None - response = self.client.get(reverse('helpdesk_public_view'), + response = self.client.get(reverse('helpdesk:public_view'), {'ticket': self.ticket.ticket_for_url, 'email':self.ticket.submitter_email}) self.assertEqual(response.status_code, 200) @@ -38,7 +38,7 @@ class TestKBDisabled(TestCase): q2 = Queue(title='Q2', slug='q2') q2.save() # grab the URL / params which would have been emailed out to submitter. - url = reverse('helpdesk_public_view') + url = reverse('helpdesk:public_view') params = {'ticket': self.ticket.ticket_for_url, 'email':self.ticket.submitter_email} # Pickup the ticket created in setup() and change its queue diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index 6477b208..c96be858 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -779,7 +779,7 @@ def ticket_list(request): query_params = json.loads(b64decode(str(saved_query.query))) except ValueError: # Query deserialization failed. (E.g. was a pickled query) - return HttpResponseRedirect(reverse('helpdesk_list')) + return HttpResponseRedirect(reverse('helpdesk:list')) elif not ( 'queue' in request.GET or 'assigned_to' in request.GET @@ -1050,7 +1050,7 @@ def run_report(request, report): try: query_params = json.loads(b64decode(str(saved_query.query))) except: - return HttpResponseRedirect(reverse('helpdesk_report_index')) + return HttpResponseRedirect(reverse('helpdesk:report_index')) report_queryset = apply_query(report_queryset, query_params)