mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-21 23:43:11 +01:00
add KBCategory.public in admin list_display
This commit is contained in:
parent
e448491bf1
commit
64db14148f
@ -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)
|
||||
|
@ -27,3 +27,6 @@
|
||||
|
||||
<!-- Custom Theme JavaScript -->
|
||||
<script src="{% static 'helpdesk/js/sb-admin.js' %}"></script>
|
||||
|
||||
{% block js_bottom %}
|
||||
{% endblock %}
|
||||
|
@ -19,7 +19,9 @@
|
||||
{% block card_body %}
|
||||
<div class="card-body">
|
||||
<p class="card-text">{{ item.question }}</p>
|
||||
{{ item.get_markdown }}
|
||||
<div class="card-answer">
|
||||
{{ item.get_markdown }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{% if request.user.pk %}
|
||||
<div class="col-sm">
|
||||
|
Loading…
Reference in New Issue
Block a user