mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 18:31:10 +01:00
Merge pull request #646 from auto-mat/kb-fix
Fix knowledge base categories display on public homepage
This commit is contained in:
commit
c5ac803ab3
@ -57,12 +57,10 @@ class CreateTicketView(FormView):
|
|||||||
return HttpResponseRedirect(reverse('helpdesk:dashboard'))
|
return HttpResponseRedirect(reverse('helpdesk:dashboard'))
|
||||||
return super().dispatch(*args, **kwargs)
|
return super().dispatch(*args, **kwargs)
|
||||||
|
|
||||||
def get_context(self):
|
def get_context_data(self, **kwargs):
|
||||||
knowledgebase_categories = KBCategory.objects.all()
|
context = super().get_context_data(**kwargs)
|
||||||
return {
|
context['kb_categories'] = KBCategory.objects.all()
|
||||||
'helpdesk_settings': helpdesk_settings,
|
return context
|
||||||
'kb_categories': knowledgebase_categories
|
|
||||||
}
|
|
||||||
|
|
||||||
def get_initial(self):
|
def get_initial(self):
|
||||||
request = self.request
|
request = self.request
|
||||||
|
Loading…
Reference in New Issue
Block a user