Joining Multiple models in same admin section

2009-01-26 Thread alant...@neei.uevora.pt
Hello, I have different models spread in some apps that are all related. Is it possible do put them in the same section in admin? example: coach: coach, coach_data, coach_things, coach_xxx player: player, player_data, player_aa, player_lll team: team, tema_data, team_ll This is all related to f

Re: Joining Multiple models in same admin section

2009-01-26 Thread alant...@neei.uevora.pt
I know, But I have lots of code and models so I separated in different apps to make it easier to read/develop. Now I noticed that for the admin they should have been developed together... Any solution? On Jan 26, 6:43 pm, Daniel Roseman wrote: > On Jan 26, 6:22 pm, "alant...@neei.u

UserProfile and select_related

2009-08-03 Thread alant...@neei.uevora.pt
Hello, I'm displaying lot of user profile picture with are on a user profile (i'm using contrib.auth). So for each picture I have a query for the user profile. I wanted to use User.objects.filter(stuff).select_related ('userprofile') but this has no effect. Any ideas how to prevent the +200 quer