cmsmanage/tasks/admin.py

16 lines
365 B
Python
Raw Normal View History

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