Quiz
1from django.contrib import admin2from .models import AuthUser, QuestionRatedByUser, Remark3
4
5class AuthUserAdmin(admin.ModelAdmin):6list_display = ('id', 'nickname', 'email', 'password', 'birthdate', 'avatar')7
8
9class QuestionRatedByUserAdmin(admin.ModelAdmin):10list_display = ('user_id', 'question_id')11
12@admin.register(Remark)13class RemarkAdmin(admin.ModelAdmin):14list_display = ('question', 'author', 'text')15
16admin.site.register(AuthUser, AuthUserAdmin)17admin.site.register(QuestionRatedByUser, QuestionRatedByUserAdmin)18