Re: Add an argument to ModelChoiceField for callable function to set label for instance.

2016-09-21 Thread Lawrence Vanderpool
er to violate the Zen of Python ("There should be one-- > and preferably only one --obvious way to do it.") is a bit high here, so > perhaps you could elaborate on how this is causing maintenance problems? > > On Tuesday, September 20, 2016 at 9:52:55 PM UTC-4, Lawrence Vand

Add an argument to ModelChoiceField for callable function to set label for instance.

2016-09-20 Thread Lawrence Vanderpool
Older related ticket: https://code.djangoproject.com/ticket/4620 My rough draft of proposed changes: https://gist.github.com/mekhami/24af779f4f491d3c66e6fd607c2121aa/revisions The problem of setting the label for ModelChoiceField is one that comes up on IRC every once in a while. It's a common