admin.py 245 B

1234567891011
  1. from django.contrib import admin
  2. from .models import TaskList, Task, TaskComment
  3. class TaskListAdmin(admin.ModelAdmin):
  4. list_display = ('name',)
  5. prepopulated_fields = {'slug': ('name',)}
  6. admin.site.register(TaskList, TaskListAdmin)