from django.contrib import admin

from .models import *

class StudentAdmin(admin.ModelAdmin):
    list_display = ('name',)

class ClassroomAdmin(admin.ModelAdmin):
    list_display = ('className', 'instructor')

class PollAdmin(admin.ModelAdmin):
    list_display = ('classroom', 'startTime', 'stopTime')

class AnswerAdmin(admin.ModelAdmin):
    list_display = ('poll', 'student', 'timestamp')


admin.site.register(InstructorUser)
admin.site.register(Student, StudentAdmin)
admin.site.register(Classroom, ClassroomAdmin)
admin.site.register(Poll, PollAdmin)
admin.site.register(Answer, AnswerAdmin)