Re: Calling attributes from other models

2008-08-26 Thread Erik Allik
Are there any plans to make list_display support stuff like artist__hometown, too? I've been missing this one a lot because the helper method approach is both slow and doesn't allow for sorting/filtering/searching etc, besides cluttering up the models with code that shouldn't be there.

Re: Calling attributes from other models

2008-08-26 Thread Matt Berg
Norman, Great. I'll give this a shot. Thank you for your help. Matt On Aug 25, 12:18 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote: > Matt Berg wrote: > > I apologize, I realize this is probably documented somewhere. > > > Say I have 2 models. > > > Artist and Album > > > Album has a foreign

Re: Calling attributes from other models

2008-08-25 Thread Norman Harman
Matt Berg wrote: > I apologize, I realize this is probably documented somewhere. > > Say I have 2 models. > > Artist and Album > > Album has a foreign key to Artist. > > I want to do a list_display of Albums something like this... > > list_display =

Calling attributes from other models

2008-08-25 Thread Matt Berg
I apologize, I realize this is probably documented somewhere. Say I have 2 models. Artist and Album Album has a foreign key to Artist. I want to do a list_display of Albums something like this... list_display = ('album','release_date','artist') This works fine and displays