bhch / tornadmin

Admin site for Tornado web server
https://tornadmin.rtfd.io
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Conflict while doing list header lookup #33

Closed bhch closed 1 year ago

bhch commented 1 year ago

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.