<s> from django import forms <EOL> class UserModelChoiceField ( forms . ModelChoiceField ) : <EOL> def label_from_instance ( self , obj ) : <EOL> return obj . get_name_or_username ( ) <EOL> class UserModelMultipleChoiceField ( forms . ModelMultipleChoiceField ) : <EOL> def label_from_instance ( self , obj ) : <EOL> return obj . get_name_or_username ( ) </s>
