diff --git a/tasks/admin.py b/tasks/admin.py index 6c3bda0..197063c 100644 --- a/tasks/admin.py +++ b/tasks/admin.py @@ -3,5 +3,11 @@ from django.contrib import admin from .models import Tool, Task, Event admin.site.register(Tool) -admin.site.register(Task) + + +@admin.register(Task) +class TaskAdmin(admin.ModelAdmin): + prepopulated_fields = {"slug": ("name",)} + + admin.site.register(Event)