Changes between Initial Version and Version 1 of Ticket #33813, comment 2


Ignore:
Timestamp:
Jun 29, 2022, 5:03:51 AM (2 years ago)
Author:
Carlton Gibson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33813, comment 2

    initial v1  
    1 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.
     1This is a duplicate of #33375 — in [https://github.com/django/django/blob/bb2c5f69f47466fa52f3cf2727d10b3ebd79a4da/django/forms/models.py#L990-L993 BaseModelFormSet.add_fields()] we add the `id` `ModelChoiceField` using the default manager.
    22
    33You'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.
Back to Top