from django.contrib import admin
from task.models import Task


class TaskAdmin(admin.ModelAdmin):
    list_filter = ['start_time', 'end_time']
    list_display = ['task', 'start_time', 'end_time', 'status']


admin.site.register(Task, TaskAdmin)

from django.contrib import admin
from task.models import Task


class TaskAdmin(admin.ModelAdmin):
    list_filter = ['start_time', 'end_time']
    list_display = ['task', 'start_time', 'end_time', 'status']


admin.site.register(Task, TaskAdmin)
