TypeError: hasattr(): attribute name must be string (Django)

Hi how to solve this issue, when i am excluding this code i am getting this type error.

my admin.py is this,

list_display = [
    "id",
    exclude==("mode_of_action",)]
Back to Top