
import django_filters

from .models import Entry
from django.contrib.auth.models import User

from django.db.models import Q

class EntryFilter(django_filters.FilterSet):
    class Meta:
        model = Entry
        fields = {
            "modality": ["icontains"],
            "exam_code": ["icontains"],
            "exam_name": ["icontains"],
            "questions": ["icontains"],
            "comments": ["icontains"],
        }