mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-26 01:43:10 +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)
|
@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)
|
||||||
|
@ -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 %}
|
||||||
|
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user