From 37b9d332dec567cf13bfb52c7d5c5517cb62a030 Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Mon, 31 Oct 2016 02:19:41 -0400 Subject: [PATCH] Fix some more missing namespace references for login and kb_category --- helpdesk/models.py | 2 +- helpdesk/templates/helpdesk/navigation.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helpdesk/models.py b/helpdesk/models.py index a7ba36c3..c3effa5c 100644 --- a/helpdesk/models.py +++ b/helpdesk/models.py @@ -974,7 +974,7 @@ class KBCategory(models.Model): verbose_name_plural = _('Knowledge base categories') def get_absolute_url(self): - return 'kb_category', (), {'slug': self.slug} + return 'helpdesk:kb_category', (), {'slug': self.slug} get_absolute_url = models.permalink(get_absolute_url) diff --git a/helpdesk/templates/helpdesk/navigation.html b/helpdesk/templates/helpdesk/navigation.html index b41a444c..729919d9 100644 --- a/helpdesk/templates/helpdesk/navigation.html +++ b/helpdesk/templates/helpdesk/navigation.html @@ -79,7 +79,7 @@
  • {% trans "System Settings" %}
  • {% endif %} -
  • {% trans "Logout" %} +
  • {% trans "Logout" %}
  • @@ -100,7 +100,7 @@ {% endif %} {% if helpdesk_settings.HELPDESK_KB_ENABLED %}
  • {% trans "Knowledgebase" %}
  • {% endif %} {% if not request.path == '/helpdesk/login/' or user.is_authenticated %} -
  • {% if user.is_authenticated %}{% trans "Logout" %}{% else %}{% trans "Log In" %}{% endif %}
  • +
  • {% if user.is_authenticated %}{% trans "Logout" %}{% else %}{% trans "Log In" %}{% endif %}
  • {% endif %} {% endif %}