Every ModelAdmin class has a few internal attributes such as name. If the model also has a field called name which is specified in the list_headers, then the resolver tries to use the value from the admin.
The admin's attribute must only be called when it's a callable. Otherwise call the model's attributes.
Every ModelAdmin class has a few internal attributes such as
name
. If the model also has a field calledname
which is specified in thelist_headers
, then the resolver tries to use the value from the admin.The admin's attribute must only be called when it's a callable. Otherwise call the model's attributes.