from django.contrib import admin
from .models import QA


class QAAdmin(admin.ModelAdmin):
    pass
    # list_display = ('id', 'video_name', 'video_class', 'state', 'cut_points', 'certainty')
    # search_fields = ('video_name', 'video_class', 'state', 'note', 'certainty')

    # def get_search_results(self, request, queryset, search_term):
    #     queryset, use_distinct = super(VideoAdmin, self).get_search_results(request, queryset, search_term)
    #     if search_term in TEXT_TO_STATE:
    #         queryset |= self.model.objects.filter(state=TEXT_TO_STATE[search_term])
    #     if search_term in TEXT_TO_CERTAINTY:
    #         queryset |= self.model.objects.filter(certainty=TEXT_TO_CERTAINTY[search_term])
    #     return queryset, use_distinct

admin.site.register(QA, QAAdmin)

# Register your models here.
