from django.contrib import admin
from .models import Todo

@admin.register(Todo)
class TodoAdmin(admin.ModelAdmin):
    list_display = ('title', 'is_completed', 'created_at', 'owner')
    list_filter = ('is_completed', 'created_at')
    search_fields = ('title', 'owner__username')
