from django.utils.translation import gettext as t
from rest_framework import serializers
from django_filters import rest_framework as filters
from .models import HookLog


class HookLogFilter(filters.FilterSet):
    start = filters.IsoDateTimeFilter(
        field_name='date_modified', lookup_expr='gte')
    end = filters.IsoDateTimeFilter(
        field_name='date_modified', lookup_expr='lt')

    class Meta:
        model = HookLog
        fields = ['status', 'start', 'end']

from django_filters import rest_framework as filters
from .models import HookLog


class HookLogFilter(filters.FilterSet):
    start = filters.IsoDateTimeFilter(
        field_name='date_modified', lookup_expr='gte')
    end = filters.IsoDateTimeFilter(
        field_name='date_modified', lookup_expr='lt')

    class Meta:
        model = HookLog
        fields = ['status', 'start', 'end']

Remove unused imports