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) @admin.register(KBCategory)
class KBCategoryAdmin(admin.ModelAdmin): class KBCategoryAdmin(admin.ModelAdmin):
list_display = ('name', 'title', 'slug', ) list_display = ('name', 'title', 'slug', 'public')
admin.site.register(PreSetReply) admin.site.register(PreSetReply)

View File

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

View File

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