add KBCategory.public in admin list_display

This commit is contained in:
Petr Dlouhý 2020-02-26 10:24:07 +01:00
parent e448491bf1
commit 64db14148f
3 changed files with 7 additions and 2 deletions

View File

@ -95,7 +95,7 @@ class IgnoreEmailAdmin(admin.ModelAdmin):
@admin.register(KBCategory)
class KBCategoryAdmin(admin.ModelAdmin):
list_display = ('name', 'title', 'slug', )
list_display = ('name', 'title', 'slug', 'public')
admin.site.register(PreSetReply)

View File

@ -27,3 +27,6 @@
<!-- Custom Theme JavaScript -->
<script src="{% static 'helpdesk/js/sb-admin.js' %}"></script>
{% block js_bottom %}
{% endblock %}

View File

@ -19,7 +19,9 @@
{% block card_body %}
<div class="card-body">
<p class="card-text">{{ item.question }}</p>
<div class="card-answer">
{{ item.get_markdown }}
</div>
<div class="row">
{% if request.user.pk %}
<div class="col-sm">