I'm working on some forms in Django. One field is a ForeignKey
in the model, so represented as a ModelChoiceField
in the form. The ModelChoiceField
currently uses the __unicode__
method of the model to populate the list, which isn't my desired behavior. I'd like to be able to use another method of the model. From the docs, it looks like I can force my own QuerySet
, but I can't see how this would help me use a method other than __unicode__
.
I'd really rather avoid divorcing this from the default form methods if at all possible.
Any suggestions?