id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 17740,BaseModelFormSet should use its queryset when initializing the ModelForm's pk_field's ModelChoiceField.,larsent,larsent,"BaseModelFormSet uses the queryset of the default model manager when creating the ModelChoiceField for the model's pk_field. Line 656: {{{ if isinstance(pk, OneToOneField) or isinstance(pk, ForeignKey): qs = pk.rel.to._default_manager.get_query_set() else: qs = self.model._default_manager.get_query_set() qs = qs.using(form.instance._state.db) form.fields[self._pk_field.name] = ModelChoiceField(qs, initial=pk_value, required=False, widget=HiddenInput) }}} The ModelFormSet will not validate if it is initialized with a queryset containing objects that are not in the model's default manager's queryset. ",Bug,closed,Forms,1.3,Normal,needsinfo,,,Unreviewed,0,0,0,0,0,0