from django.contrib import admin

from vbv_lernwelt.self_evaluation_feedback.models import (
    CourseCompletionFeedback,
    SelfEvaluationFeedback,
)


@admin.register(SelfEvaluationFeedback)
class CourseSessionAdmin(admin.ModelAdmin):
    list_display = (
        "id",
        "feedback_submitted",
        "feedback_requester_user",
        "feedback_provider_user",
        "learning_unit",
    )
    list_filter = (
        "feedback_submitted",
        "feedback_requester_user",
        "feedback_provider_user",
        "learning_unit",
    )
    search_fields = (
        "feedback_submitted",
        "feedback_requester_user",
        "feedback_provider_user",
        "learning_unit",
    )


@admin.register(CourseCompletionFeedback)
class CourseSessionAdmin(admin.ModelAdmin):
    list_display = (
        "id",
        "feedback",
        "course_completion",
        "feedback_assessment",
    )
    list_filter = (
        "feedback",
        "course_completion",
        "feedback_assessment",
    )
    search_fields = (
        "feedback",
        "course_completion",
        "feedback_assessment",
    )
