This thread has prompted me to blog about my solution to this
problem.  Here's how I've done this:

1) I created a UserModelChoiceField(ModelChoiceField) class whose
label_from_instance method returns a string containing the User's full
name (and username in parenthesis)
2) Create a ModelForm for the Model containing the FK to User. In this
form, use the UserModelChoiceField to override the FK attribute.
3) In the ModelAdmin class, set a form attribute that points to the
above ModelForm.

More detail (and some samples) are available here:
http://bradmontgomery.blogspot.com/2010/04/pretty-options-for-djangos-authuser.html

There's probably a simpler way, but I've been using this method for
about a year in some production code.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to