On Fri, 2007-12-07 at 06:08 -0800, l5x wrote: > Hello, > > I couldn't find the information how to override the 'list_display' and > 'fields' of the Django (SVN) User model in Admin interface. > > I need to display User altogether with his two profiles. I know that > there is a get_profile(), but I want to display everything related to > User in the Admin, in one place (the same for adding/changing). Is > there any way to do that? Can I subclass it somehow in a way that it > will work with further Django releases? > > If not, is there a possibility to display on the first profile a link > to another profile and vice versa? How can I do that?
With the current Admin, the properties of the Admin display are part of the model definition, so you don't get to change that for third-party models (such as User). With the upcoming newforms-admin work, you might be able to register your own SiteAdmin for User (not quite sure how it will work for replacing the exiting SiteAdmin for User, but that's a detail) and do whatever you like. Malcolm -- Depression is merely anger without enthusiasm. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---