[Django]-Make boolean values editable in list_display?

61👍

ModelAdmin.list_editable is what you need, see its doc here. Below you also have an example:

class TaskAdmin(models.ModelAdmin):
    list_display = (..., 'is_finished')
    list_editable = ('is_finished',) # this MUST only contain fields that also are in "list_display"
    #list_display_links = ('foo', 'bar') # this MUST NOT contain a field in common with "list_editable"

Leave a comment