From 3a0f08046e53fb40485a0ddba612916c4eea7f5b Mon Sep 17 00:00:00 2001 From: Alex Barcelo Date: Tue, 22 Dec 2015 10:10:00 +0100 Subject: [PATCH 01/46] using `helpdesk` app_name and droping `helpdesk_` prefix --- helpdesk/models.py | 4 +- helpdesk/templates/helpdesk/base.html | 12 +-- .../templates/helpdesk/email_ignore_list.html | 2 +- helpdesk/templates/helpdesk/help_api.html | 8 +- .../templates/helpdesk/include/stats.html | 4 +- .../templates/helpdesk/include/summary.html | 2 +- .../helpdesk/include/unassigned.html | 2 +- helpdesk/templates/helpdesk/navigation.html | 28 +++--- .../templates/helpdesk/public_homepage.html | 2 +- .../templates/helpdesk/public_view_form.html | 2 +- .../helpdesk/registration/login.html | 2 +- helpdesk/templates/helpdesk/rss_list.html | 10 +-- .../templates/helpdesk/system_settings.html | 2 +- helpdesk/templates/helpdesk/ticket.html | 12 +-- .../templates/helpdesk/ticket_cc_list.html | 4 +- .../templates/helpdesk/ticket_desc_table.html | 14 +-- helpdesk/templates/helpdesk/ticket_list.html | 8 +- helpdesk/templatetags/ticket_to_link.py | 2 +- helpdesk/tests/test_navigation.py | 2 +- .../tests/test_per_queue_staff_permission.py | 12 +-- helpdesk/tests/test_public_actions.py | 4 +- helpdesk/tests/test_ticket_submission.py | 12 +-- helpdesk/urls.py | 90 ++++++++++--------- helpdesk/views/feeds.py | 10 +-- helpdesk/views/public.py | 14 +-- helpdesk/views/staff.py | 46 +++++----- 26 files changed, 156 insertions(+), 154 deletions(-) diff --git a/helpdesk/models.py b/helpdesk/models.py index 6069f6cc..d86ec7dd 100644 --- a/helpdesk/models.py +++ b/helpdesk/models.py @@ -495,7 +495,7 @@ class Ticket(models.Model): site = Site(domain='configure-django-sites.com') return u"http://%s%s?ticket=%s&email=%s" % ( site.domain, - reverse('helpdesk_public_view'), + reverse('helpdesk:public_view'), self.ticket_for_url, self.submitter_email ) @@ -514,7 +514,7 @@ class Ticket(models.Model): site = Site(domain='configure-django-sites.com') return u"http://%s%s" % ( site.domain, - reverse('helpdesk_view', + reverse('helpdesk:view', args=[self.id]) ) staff_url = property(_get_staff_url) diff --git a/helpdesk/templates/helpdesk/base.html b/helpdesk/templates/helpdesk/base.html index d5dcd2f2..456e3b5f 100644 --- a/helpdesk/templates/helpdesk/base.html +++ b/helpdesk/templates/helpdesk/base.html @@ -17,9 +17,9 @@ - - - + + +