Quiz
1from django.contrib import admin2from .models import Question, Category, Type, SubType, Answer, QuestionComplaint3
4@admin.register(Question)5class QuestionAdmin(admin.ModelAdmin):6list_display = ('question', 'answer', 'category', 'created_at', 'is_validated')7
8@admin.register(Category)9class CategoryAdmin(admin.ModelAdmin):10list_display = ('name',)11
12@admin.register(Type)13class TypeAdmin(admin.ModelAdmin):14list_display = ('name',)15
16@admin.register(SubType)17class SubTypeAdmin(admin.ModelAdmin):18list_display = ('name', 'type')19
20@admin.register(Answer)21class AnswerAdmin(admin.ModelAdmin):22list_display = ('answer', 'subtype')23
24@admin.register(QuestionComplaint)25class QuestionComplaintAdmin(admin.ModelAdmin):26list_display = ('question', 'text')27
28