#5863: list_display does not allow functions of referenced objects
------------------------------------------------+---------------------------
   Reporter:  Beat Bolli <[EMAIL PROTECTED]>  |                Owner:  nobody   
      
     Status:  reopened                          |            Component:  Admin 
interface
    Version:  SVN                               |           Resolution:         
        
   Keywords:  list_display                      |                Stage:  
Accepted       
  Has_patch:  0                                 |           Needs_docs:  0      
        
Needs_tests:  0                                 |   Needs_better_patch:  0      
        
------------------------------------------------+---------------------------
Changes (by gwilson):

  * stage:  Unreviewed => Accepted

Old description:

> It is possible to include a model member function in the list_display
> Admin property. The same thing is not possible for ForeignKey models; at
> least not with any of the variations I have tried: foreign.method,
> foreign_method and foreign__method.

New description:

 It is possible to include a model member function in the `list_display`
 Admin property. The same thing is not possible for ForeignKey models; at
 least not with any of the variations I have tried: `foreign.method`,
 `foreign_method` and `foreign__method`.

Comment:

 Seems like a reasonable addition to me.  Do we even allow doing this for
 actual fields of a related model?  This feature probably needs to be part
 of newforms-admin or wait until that branch is merged though.  It would be
 helpful if you could attach a simple example, or even try your hand at
 creating a patch.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5863#comment:5>
Django Code <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
-~----------~----~----~----~------~----~------~--~---

Reply via email to