https://code.djangoproject.com/ticket/6839
--
Ticket URL: <https://code.djangoproject.com/ticket/32912>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => duplicate
Comment:
I'm sorry but I don't see anything new in your description. As far as I'm
aware you don't need do "reset" a queryset when subclassing
`ModelChoiceField` as documented, e.g.
{{{
from django.forms import ModelChoiceField
class MyModelChoiceField(ModelChoiceField):
def label_from_instance(self, obj):
return "My Object #%i" % obj.id
class Aform(forms.Form):
user = MyModelChoiceField(queryset=User.objects.all())
}}}
Duplicate of #6839.
--
Ticket URL: <https://code.djangoproject.com/ticket/32912#comment:1>