cmsmanage/tasks/admin.py

15 lines
273 B
Python

from django.contrib import admin
from .models import Tool, Task, Reminder, Event
admin.site.register(Tool)
@admin.register(Task)
class TaskAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
admin.site.register(Reminder)
admin.site.register(Event)