per page, with , order by , clip by
Results of 1 - 10 of about 72 for OneToOneField (0.007 sec.)
モデル — Django 6.1 ドキュメント 12585
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデル ¶ モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは ... 自動的に追加されるかのどちらかで) 存在する必要があります。 詳細 (verbose) なフィールド名 ¶ ForeignKey 、 ManyToManyField 、 OneToOneField を除くすべてのフィールド型は、任意の第 1 引数として "詳細な名前 (verbose name)" を取ります。詳細な名前を指定しない場合、Dj ... 例では、詳細な名前は "first name" です: first_name = models . CharField ( max_length = 30 ) ForeignKey 、 ManyToManyField 、 OneToOneField の 3 つは最初の引数にモデルクラスを必要とするので、 verbose_name キーワード引数を使用してください: poll = models . Foreign ... _name = "the related poll" , ) sites = models . ManyToManyField ( Site , verbose_name = "list of sites" ) place = models . OneToOneField ( Place , on_delete = models . CASCADE , verbose_name = "related place" , ) 慣習的に、 verbose_name の最初の文字は大文字に ...
https://man.mtool.work/django/6.1/topics/db/models.html
モデル — Django 6.1 ドキュメント 12585
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデル ¶ モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは ... 自動的に追加されるかのどちらかで) 存在する必要があります。 詳細 (verbose) なフィールド名 ¶ ForeignKey 、 ManyToManyField 、 OneToOneField を除くすべてのフィールド型は、任意の第 1 引数として "詳細な名前 (verbose name)" を取ります。詳細な名前を指定しない場合、Dj ... 例では、詳細な名前は "first name" です: first_name = models . CharField ( max_length = 30 ) ForeignKey 、 ManyToManyField 、 OneToOneField の 3 つは最初の引数にモデルクラスを必要とするので、 verbose_name キーワード引数を使用してください: poll = models . Foreign ... _name = "the related poll" , ) sites = models . ManyToManyField ( Site , verbose_name = "list of sites" ) place = models . OneToOneField ( Place , on_delete = models . CASCADE , verbose_name = "related place" , ) 慣習的に、 verbose_name の最初の文字は大文字に ...
https://man.mtool.work/django/6.1/topics/db/models.html
Django 1.7.4 リリースノート — Django 6.1 ドキュメント 10609
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7.4 リリースノート ¶ January 27, 2015 Django 1.7.4 fixes several bugs in 1.7.3. バグ修正 ¶ Fixed a migration crash when unapplying contrib. ... n's RenameModel operation rename ManyToManyField tables ( #24135 ). Fixed a migration crash on MySQL when migrating from a OneToOneField to a ForeignKey ( #24163 ). Prevented the static.serve view from producing ResourceWarning s in certain circumstances (sec ... y fixes several bugs バグ 修正 unapplying contenttypes auth first Made RenameModel operation rename tables MySQL migrating OneToOneField ForeignKey クイック検索 Last update: 2026年10月09日 « previous | up | next » ...
https://man.mtool.work/django/6.1/releases/1.7.4.html
一対一 (one-to-one) 関係 — Django 6.1 ドキュメント 10609
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 一対一 (one-to-one) 関係 ¶ 一対一の関係を定義するには、 OneToOneField を使用します。 この例では、 Place は任意で Restaurant になることができます: fr ... h = 80 ) def __str__ ( self ): return f " { self . name } the place" class Restaurant ( models . Model ): place = models . OneToOneField ( Place , on_delete = models . CASCADE , primary_key = True , ) serves_hot_dogs = models . BooleanField ( default = False ... rant__place__name__startswith = "Demon" ) <Place: Demon Dogs the place> 場所を削除した場合、そのレストランは削除されます ( OneToOneField が on_delete にデフォルトの CASCADE をセットして定義されていると仮定した場合): >>> p2 . delete () (2, {'one_to_one.Restaur ... ant Place Demon Dogs objects models self Waiter QuerySet serves waiter Hardware address save レストラン セット delete 関係 OneToOneField Model CharField length return クイック検索 Last update: 2026年10月09日 « previous | up | next » ...
https://man.mtool.work/django/6.1/topics/db/examples/one_to_one.html
モデルフィールドリファレンス — Django 6.1 ドキュメント 9950
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデルフィールドリファレンス ¶ このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field の ... しようとすると、モデルの save() メソッドによって django.db.IntegrityError が発生します。 このオプションは ManyToManyField と OneToOneField 以外の全てのフィールドタイプで有効です。 unique が True の場合、 db_index を指定する必要はないことに注意してください。なぜ ... s をサポートしていません。 null は、データベースレベルでリレーションシップを要求する方法がないので、何の効果もありません。 OneToOneField ¶ class OneToOneField ( to , on_delete , parent_link = False , ** options ) [ソース] ¶ 一対一のリレーションシップです。概念 ... と全く同じ方法で機能し、 再帰的なリレーションシップ や 遅延リレーションシップ に関するすべてのオプションが含まれます。 もし OneToOneField に related_name 引数を指定しなければ、 Django は現在のモデルの小文字の名前をデフォルト値として使用します。 次の例では、 fr ...
https://man.mtool.work/django/6.1/ref/models/fields.html
モデルフィールドリファレンス — Django 6.1 ドキュメント 9740
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデルフィールドリファレンス ¶ このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field の ... しようとすると、モデルの save() メソッドによって django.db.IntegrityError が発生します。 このオプションは ManyToManyField と OneToOneField 以外の全てのフィールドタイプで有効です。 unique が True の場合、 db_index を指定する必要はないことに注意してください。なぜ ... s をサポートしていません。 null は、データベースレベルでリレーションシップを要求する方法がないので、何の効果もありません。 OneToOneField ¶ class OneToOneField ( to , on_delete , parent_link = False , ** options ) [ソース] ¶ 一対一のリレーションシップです。概念 ... と全く同じ方法で機能し、 再帰的なリレーションシップ や 遅延リレーションシップ に関するすべてのオプションが含まれます。 もし OneToOneField に related_name 引数を指定しなければ、 Django は現在のモデルの小文字の名前をデフォルト値として使用します。 次の例では、 fr ...
https://man.mtool.work/django/6.1/ref/models/fields.html
一対一 (one-to-one) 関係 — Django 6.1 ドキュメント 9305
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 一対一 (one-to-one) 関係 ¶ 一対一の関係を定義するには、 OneToOneField を使用します。 この例では、 Place は任意で Restaurant になることができます: fr ... h = 80 ) def __str__ ( self ): return f " { self . name } the place" class Restaurant ( models . Model ): place = models . OneToOneField ( Place , on_delete = models . CASCADE , primary_key = True , ) serves_hot_dogs = models . BooleanField ( default = False ... rant__place__name__startswith = "Demon" ) <Place: Demon Dogs the place> 場所を削除した場合、そのレストランは削除されます ( OneToOneField が on_delete にデフォルトの CASCADE をセットして定義されていると仮定した場合): >>> p2 . delete () (2, {'one_to_one.Restaur ...
https://man.mtool.work/django/6.1/topics/db/examples/one_to_one.html
Django 1.7.4 リリースノート — Django 6.1 ドキュメント 7778
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7.4 リリースノート ¶ January 27, 2015 Django 1.7.4 fixes several bugs in 1.7.3. バグ修正 ¶ Fixed a migration crash when unapplying contrib. ... n's RenameModel operation rename ManyToManyField tables ( #24135 ). Fixed a migration crash on MySQL when migrating from a OneToOneField to a ForeignKey ( #24163 ). Prevented the static.serve view from producing ResourceWarning s in certain circumstances (sec ...
https://man.mtool.work/django/6.1/releases/1.7.4.html
Django 1.8.9 リリースノート — Django 6.1 ドキュメント 7778
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.8.9 リリースノート ¶ February 1, 2016 Django 1.8.9 fixes several bugs in 1.8.8. バグ修正 ¶ Fixed a regression that caused the "user-tools" ... #26034 ). Fixed a crash when using an __in lookup inside a Case expression ( #26071 ). Fixed a crash when using a reverse OneToOneField in ModelAdmin.readonly_fields ( #26060 ). Fixed a regression in Django 1.8.5 that broke copying a SimpleLazyObject with co ...
https://man.mtool.work/django/6.1/releases/1.8.9.html
Django 1.9.7 リリースノート — Django 6.1 ドキュメント 7778
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.9.7 リリースノート ¶ 2016年6月4日 Django 1.9.7 では、1.9.6 にあったいくつかのバグを修正しました。 バグ修正 ¶ Removed the need for the reque ... t ( #26672 ). Fixed dbshell crash on PostgreSQL with an empty database name ( #26698 ). Fixed a regression in queries on a OneToOneField that has to_field and primary_key=True ( #26667 ). 目次 Django 1.9.7 リリースノート バグ修正 前のトピックへ Django 1.9.8 リ ...
https://man.mtool.work/django/6.1/releases/1.9.7.html
PREV 1 2 3 4 5 6 7 8 NEXT