Friday, July 30, 2010

Show mail instead user name in ForeignKey <select> at admin


When I'm using user as ForeignField in some of my models I get a <select> box with the username, can I override this with the mail instead the username?

I've tested making a Proxy class, but I think that the proxy classes isn't for this. I heard about MonkeyPatch but I don't know how to use it, or if it's really the best way to do it.

Álex González

Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt and/or .pptx

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment