list_display_links doesn't allow callables not defined in the model
|Reported by:||dvine||Owned by:||Chris Adams|
|Cc:||mail@…, chris@…||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In a custom ModelAdmin class you can use class methods of this class as change_list fields via the list_display property. But if you wan't to use this callable as link with the ist_display_links property you get an error
'CustomPortfolioAdmin.list_display_links' refers to 'change_list_status' that is neither a field, method or property of model 'CustomPortfolio'.
There is a ticket that introduced the error message (#2578), but I think this is a new issue, that's why I open a new ticket.
Change History (38)
comment:21 follow-up: 27 Changed 6 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Ready for checkin → Accepted|
comment:25 Changed 6 years ago by
|Patch needs improvement:||unset|
|Version:||SVN → 1.2|