... -to-one fields ( #24578 ). Fixed a regression in the model detail view of admindocs when a model has a reverse foreign key relation ( #24624 ). Prevented arbitrary file inclusions in admindocs ( #24625 ). Fixed a crash with QuerySet.update() on foreign k ... dmin 's related field widget when using alternate static file storages ( #24655 ). Fixed a migration crash when adding new relations to models ( #24573 ). Fixed a migration crash when applying migrations with model managers on Python 3 that were generate ... terators as queryset filter arguments ( #24719 ). Fixed a migration crash when renaming the target model of a many-to-many relation ( #24725 ). Removed flushing of the test database with test --keepdb , which prevented apps with data migrations from usin ... ... re specified ( #32949 ). Fixed a bug in Django 3.2 where a system check would crash on a model with a reverse many-to-many relation inherited from a parent class ( #32947 ). 目次 Django 3.2.6 リリースノート バグ修正 前のトピックへ Django 3.2.7 リリースノ ... スノート August regression caused validating input forms DecimalField constraints were specified system check model reverse relation inherited parent クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... -to-one fields ( #24578 ). Fixed a regression in the model detail view of admindocs when a model has a reverse foreign key relation ( #24624 ). Prevented arbitrary file inclusions in admindocs ( #24625 ). Fixed a crash with QuerySet.update() on foreign k ... dmin 's related field widget when using alternate static file storages ( #24655 ). Fixed a migration crash when adding new relations to models ( #24573 ). Fixed a migration crash when applying migrations with model managers on Python 3 that were generate ... terators as queryset filter arguments ( #24719 ). Fixed a migration crash when renaming the target model of a many-to-many relation ( #24725 ). Removed flushing of the test database with test --keepdb , which prevented apps with data migrations from usin ... ... s = FoodQuerySet . as_manager () Food . objects . pizzas () . vegetarian () Using a custom manager when traversing reverse relations ¶ It is now possible to specify a custom manager when traversing a reverse relationship: class Blog ( models . Model ): p ... s. ¶ The new Prefetch object allows customizing prefetch operations. You can specify the QuerySet used to traverse a given relation or customize the storage location of prefetch results. This enables things like filtering prefetched relations, calling se ... lect_related() from a prefetched relation, or prefetching the same relation multiple times with different querysets. See prefetch_related() for more details. Admin ... ... s = FoodQuerySet . as_manager () Food . objects . pizzas () . vegetarian () Using a custom manager when traversing reverse relations ¶ It is now possible to specify a custom manager when traversing a reverse relationship: class Blog ( models . Model ): p ... s. ¶ The new Prefetch object allows customizing prefetch operations. You can specify the QuerySet used to traverse a given relation or customize the storage location of prefetch results. This enables things like filtering prefetched relations, calling se ... lect_related() from a prefetched relation, or prefetching the same relation multiple times with different querysets. See prefetch_related() for more details. Admin ... ... bject = guido ) 同様に、 GenericForeignKey は ModelForm 内には表示されません。 逆ジェネリックリレーション (Reverse generic relation) ¶ class GenericRelation [ソース] ¶ related_query_name ¶ リレーション先オブジェクトに対する逆のリレーションはデフォルトでは ... ションシップを追加して、追加のAPIを有効にすることもできます。たとえば: from django.contrib.contenttypes.fields import GenericRelation from django.db import models class Bookmark ( models . Model ): url = models . URLField () tags = GenericRelation ( Tagged ... ) >>> b . tags . all () <QuerySet []> >>> TaggedItem . objects . all () <QuerySet []> related_query_name を設定して GenericRelation を定義すると、リレーション先オブジェクトからクエリを行うことができます。 tags = GenericRelation ( TaggedItem , related_que ... ... bject = guido ) 同様に、 GenericForeignKey は ModelForm 内には表示されません。 逆ジェネリックリレーション (Reverse generic relation) ¶ class GenericRelation [ソース] ¶ related_query_name ¶ リレーション先オブジェクトに対する逆のリレーションはデフォルトでは ... ションシップを追加して、追加のAPIを有効にすることもできます。たとえば: from django.contrib.contenttypes.fields import GenericRelation from django.db import models class Bookmark ( models . Model ): url = models . URLField () tags = GenericRelation ( Tagged ... ) >>> b . tags . all () <QuerySet []> >>> TaggedItem . objects . all () <QuerySet []> related_query_name を設定して GenericRelation を定義すると、リレーション先オブジェクトからクエリを行うことができます。 tags = GenericRelation ( TaggedItem , related_que ... ... re specified ( #32949 ). Fixed a bug in Django 3.2 where a system check would crash on a model with a reverse many-to-many relation inherited from a parent class ( #32947 ). 目次 Django 3.2.6 リリースノート バグ修正 前のトピックへ Django 3.2.7 リリースノ ... ... y usage in long-running processes in debug mode. There is now a model Meta option to define a default related name for all relational fields of a model. Pickling models and querysets across different versions of Django isn't officially supported (it may ... method's transaction and any exception in a signal handler will prevent the whole operation. Assigning unsaved objects to relations raises an error ¶ 注釈 To more easily allow in-memory usage of models, this change was reverted in Django 1.8.4 and repla ... rohibited to prevent data loss due to unsaved related object 'author'. A similar check on assignment to reverse one-to-one relations was removed in Django 1.8.5. Assigning unsaved objects to a ForeignKey , GenericForeignKey , and OneToOneField now raises ... ... y usage in long-running processes in debug mode. There is now a model Meta option to define a default related name for all relational fields of a model. Pickling models and querysets across different versions of Django isn't officially supported (it may ... method's transaction and any exception in a signal handler will prevent the whole operation. Assigning unsaved objects to relations raises an error ¶ 注釈 To more easily allow in-memory usage of models, this change was reverted in Django 1.8.4 and repla ... rohibited to prevent data loss due to unsaved related object 'author'. A similar check on assignment to reverse one-to-one relations was removed in Django 1.8.5. Assigning unsaved objects to a ForeignKey , GenericForeignKey , and OneToOneField now raises ... 2026年10月08日