from django.contrib import admin
from students.models import Student, Group, Course


admin.site.register(Group)
admin.site.register(Course)

#admin.site.register(Student)
@admin.register(Student)
class AuthorAdmin(admin.ModelAdmin):
    actions_on_top = True
    actions_on_bottom = True
    date_hierarchy = 'date_of_birth'
    fieldsets = (
        (None, {
            'fields': ('name', 'surname')
        }),
        ('General information', {
            'classes': ('collapse',),
            'fields': ('email', 'phone', 'package', 'date_of_birth', 'note', 'group', 'course')
        }),
    )
    list_filter = ('group', 'course')
    
    
    