I need to add a button to the column of the Django Admin table which will delete the record. A button must be in each entry.
models.py
class Worker (models.Model): name = models.CharField ('Name', max_length=30) surname = models.CharField ('Surname', max_length=30) admin.py
class WorkerAdmin (admin.ModelAdmin): list_display = ('surname', 'name') search_fields = ('surname', 'name') list_filter = ('surname', 'name') admin.site.register(Worker, WorkerAdmin)