... emaEditor. remove_constraint ( model , constraint ) [ソース] ¶ model のテーブルから constraint を削除します。 alter_unique_together() ¶ BaseDatabaseSchemaEditor. alter_unique_together ( model , old_unique_together , new_unique_together ) [ソース] ¶ モデル ... の unique_together 値を変更します。これにより、新しい値に一致するまで、モデルのテーブルからユニーク制約が追加または削除されます。 alter_index ... _together() ¶ BaseDatabaseSchemaEditor. alter_index_together ( model , old_index_together , new_index_together ) [ソース] ¶ モデルの ... ... emaEditor. remove_constraint ( model , constraint ) [ソース] ¶ model のテーブルから constraint を削除します。 alter_unique_together() ¶ BaseDatabaseSchemaEditor. alter_unique_together ( model , old_unique_together , new_unique_together ) [ソース] ¶ モデル ... の unique_together 値を変更します。これにより、新しい値に一致するまで、モデルのテーブルからユニーク制約が追加または削除されます。 alter_index ... _together() ¶ BaseDatabaseSchemaEditor. alter_index_together ( model , old_index_together , new_index_together ) [ソース] ¶ モデルの ... ... fields = [ "last_name" , "first_name" ]), models . Index ( fields = [ "first_name" ], name = "first_name_idx" ), ] unique_together ¶ Options. unique_together ¶ 代わりに UniqueConstraint を constraints オプションとともに使用してください。 UniqueConstrain ... t は unique_together よりも多くの機能を提供します。 unique_together は将来廃止される可能性があります。 組み合わせが一意でなければならないフィー ... ルドのリストを指定します。 unique_together = [[ "driver" , "restaurant" ]] これは、一緒に考えたときに一意でなければならないリストのリストです。Django の管理画面で使わ ... ... fields = [ "last_name" , "first_name" ]), models . Index ( fields = [ "first_name" ], name = "first_name_idx" ), ] unique_together ¶ Options. unique_together ¶ 代わりに UniqueConstraint を constraints オプションとともに使用してください。 UniqueConstrain ... t は unique_together よりも多くの機能を提供します。 unique_together は将来廃止される可能性があります。 組み合わせが一意でなければならないフィー ... ルドのリストを指定します。 unique_together = [[ "driver" , "restaurant" ]] これは、一緒に考えたときに一意でなければならないリストのリストです。Django の管理画面で使わ ... ... #24712 ). Fixed isnull lookup for HStoreField ( #24751 ). マイグレーションが外部キーを含む組み合わせインデックス ( unique_together や index_together ) を削除するときに、MySQL がクラッシュする問題を修正しました ( #24757 )。 Fixed session cookie deletion ... query ForeignKey database cached backend flush users their auth user logged flushed 修正 crash expressions MySQL UUIDField together クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... th GeometryField s in migrations ( #23719 ). Fixed a migration crash when removing a field that is referenced in AlterIndexTogether or AlterUniqueTogether ( #23614 ). Updated the first day of the week in the Ukrainian locale to Monday. Added support for ... QL backend when db_type returned None ( #23761 ). Fixed a migration crash when a field is renamed that is part of an index_together ( #23859 ). Fixed squashmigrations to respect the --no-optimize parameter ( #23799 ). Made RenameModel reversible ( #22248 ... sing deeply nested subqueries ( #23605 ). Fixed a crash in migrations when deleting a field that is part of a index/unique_together constraint ( #23794 ). Fixed django.core.files.File.__repr__() when the file's name contains Unicode characters ( #23888 ) ... ... th GeometryField s in migrations ( #23719 ). Fixed a migration crash when removing a field that is referenced in AlterIndexTogether or AlterUniqueTogether ( #23614 ). Updated the first day of the week in the Ukrainian locale to Monday. Added support for ... QL backend when db_type returned None ( #23761 ). Fixed a migration crash when a field is renamed that is part of an index_together ( #23859 ). Fixed squashmigrations to respect the --no-optimize parameter ( #23799 ). Made RenameModel reversible ( #22248 ... sing deeply nested subqueries ( #23605 ). Fixed a crash in migrations when deleting a field that is part of a index/unique_together constraint ( #23794 ). Fixed django.core.files.File.__repr__() when the file's name contains Unicode characters ( #23888 ) ... ... els.E007 : フィールド <field name> は他のフィールドで使用されている列名 <column name> を持っています。 models.E008 : index_together はリストまたはタプルでなければなりません。 このチェックはDjango 5.1より前のバージョンに存在します。 models.E009 : すべての ... index_together の要素はリストまたはタプルでなければなりません。 このチェックはDjango 5.1より前のバージョンに存在します。 models.E010 : un ... ique_together はリストまたはタプルでなければなりません。 models.E011 : すべての unique_together 要素はリストまたはタプルでなければなりま ... ... #24712 ). Fixed isnull lookup for HStoreField ( #24751 ). マイグレーションが外部キーを含む組み合わせインデックス ( unique_together や index_together ) を削除するときに、MySQL がクラッシュする問題を修正しました ( #24757 )。 Fixed session cookie deletion ... ... rictive and not recommended, subclass EmailBackend and override the ssl_context property. 4.2 で非推奨となった機能 ¶ index_together オプションは indexes を優先するため非推奨になりました。 ¶ The Meta.index_together option is deprecated in favor of the ind ... exes option. 既存の index_together のマイグレーションはマイグレーションとして扱うべきです。例えば: class Author ( models . Model ): rank = models . IntegerFi ... eld () name = models . CharField ( max_length = 30 ) class Meta : index_together = [[ "rank" , "name" ]] これは以下のようにすべきです: class Author ( models . Model ): rank = models . IntegerField () nam ... 2026年10月08日