Friday, July 30, 2010

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

Hi!

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.

Thanks!
Álex González

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

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment