from django.contrib import admin
from .models import Course

@admin.register(Course)
class CourseAdmin(admin.ModelAdmin):
    list_display = ('name', 'code', 'department', 'semester', 'credits')
    search_fields = ('name', 'code', 'department')
    list_filter = ('department', 'semester')