* status: new => closed
* resolution: => duplicate
Comment:
This is a duplicate of #33375 — in
[https://github.com/django/django/blob/33401cba9317de2487c31ffdd1a5a51ecfbc0248/django/forms/models.py#L859-L862
BaseModelFormSet.add_fields()] we add the `id` `ModelChoiceField` using
the default manager.
You'll need to provide the
[https://docs.djangoproject.com/en/4.0/ref/contrib/admin
/#inlinemodeladmin-options inline's `form` option] to provide the base
form class declaring the `id` `ModelChoiceField` with the correct (for
your case) QuerySet.
--
Ticket URL: <https://code.djangoproject.com/ticket/33813#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.