Code

Changes between Initial Version and Version 5 of Ticket #5863


Ignore:
Timestamp:
11/03/07 18:01:25 (6 years ago)
Author:
gwilson
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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5863

    • Property Status changed from new to reopened
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Summary changed from list_display does not allow functions of references objects to list_display does not allow functions of referenced objects
    • Property Needs documentation unset
    • Property Triage Stage changed from Unreviewed to Accepted
  • Ticket #5863 – Description

    initial v5  
    1 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. 
     1It 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`.