... use. This issue has severity "moderate" according to the Django security policy . CVE-2026-87975: Privilege abuse in model formsets with editable primary keys Model formsets incorrectly allowed forged POST data to either delete instances outside the limi ... ting queryset or create instances via edit-only formsets when the model's primary key could be set through the form, such as with: a OneToOneField (or parent link used as the prim ... ... use. This issue has severity "moderate" according to the Django security policy . CVE-2026-87975: Privilege abuse in model formsets with editable primary keys Model formsets incorrectly allowed forged POST data to either delete instances outside the limi ... ting queryset or create instances via edit-only formsets when the model's primary key could be set through the form, such as with: a OneToOneField (or parent link used as the prim ... ... use. This issue has severity "moderate" according to the Django security policy . CVE-2026-87975: Privilege abuse in model formsets with editable primary keys Model formsets incorrectly allowed forged POST data to either delete instances outside the limi ... ting queryset or create instances via edit-only formsets when the model's primary key could be set through the form, such as with: a OneToOneField (or parent link used as the prim ... ... フォームセットクラスを作成して空のフォームを2つ表示します: >>> ArticleFormSet = formset_factory ( ArticleForm , extra = 2 ) Formsets can be iterated and indexed, accessing forms in the order they were created. You can reorder the forms by overriding the d ... を制限できます。これにより、偽造された POST リクエストを使用したメモリ枯渇攻撃から守ることができます: >>> from django.forms.formsets import formset_factory >>> from myapp.forms import ArticleForm >>> ArticleFormSet = formset_factory ( ArticleForm , absolu ... れます。 BaseFormSet. template_name_div as_div() を呼び出す際に使用するテンプレートの名前です。デフォルトでは "django/forms/formsets/div.html" です。このテンプレートはフォームセットの管理フォームをレンダリングし、 フォームセット内の各フォームをフォームの ... ... an issue is if you were expecting the repr of a BooleanField to print 1 or 0 . Changes to the interpretation of max_num in FormSets As part of enhancements made to the handling of FormSets, the default value and interpretation of the max_num parameter to ... the django.forms.formsets.formset_factory() and django.forms.models.modelformset_factory() functions has changed slightly. This change also affects ... the way the max_num argument is used for inline admin objects. Previously, the default value for max_num was 0 (zero). FormSets then used the boolean value of max_num to determine if a limit was to be imposed on the number of generated forms. The def ... ... transaction django.dispatch Signal dispatch f django.forms django.forms.fields Django's built-in form fields. django.forms.formsets Django's functions for building formsets. django.forms.models ModelForm API reference for inner ``Meta`` class and factory ... ... check on reverse relations to Model.save() ( #25160 ). Readded inline foreign keys to form instances when validating model formsets ( #25431 ). Allowed using ORM write methods after disabling autocommit with set_autocommit(False) ( #24921 ). Fixed the ma ... ... ated setting and resetting of ordering and fixes for working with INSERT -only queries. Multiple fixes for inline forms in formsets. Multiple fixes for unique and unique_together model constraints in automatically-generated forms. Fixed support for custo ... ... ns (#21457) or when fixture path was relative but located in a subdirectory (#21551). Fixed display of inline instances in formsets when parent has 0 for primary key (#21472). Fixed a regression where custom querysets for foreign keys were overwritten if ... ... overridden with a string value to specify the template name per-form class. Similarly, the default template used to render formsets can be specified via the matching formset_template_name renderer attribute. The new div.html form template, referencing Fo ... ould define a form renderer setting form_template_name to "django/forms/p.html" and formset_template_name to "django/forms/formsets/p.html" . The new legend_tag() allows rendering field labels in <legend> tags via the new tag argument of label_tag() . Th ... c() methods, and the OrderBy expression is deprecated. Use None instead. The "django/forms/default.html" and "django/forms/formsets/default.html" templates which are a proxy to the table-based templates are deprecated. Use the specific template instead. ... 2026年10月08日