#11058: list_display_links doesn't allow callables not defined in the model
----------------------------------+-----------------------------------------
Reporter: dvine | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: 1.0
Keywords: | Stage: Unreviewed
Has_patch: 0 |
----------------------------------+-----------------------------------------
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
Example:
{{{
'CustomPortfolioAdmin.list_display_links[0]' 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.
--
Ticket URL: <http://code.djangoproject.com/ticket/11058>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---