Prepopulate the slug field in the Task Admin page
This commit is contained in:
parent
9ec48f075f
commit
6640306113
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user