per page, with , order by , clip by
Results of 1 - 10 of about 36 for OneToOneField (0.006 sec.)
モデル 14581
モデル モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは単一のデータベースのテーブルに対応付けられます。 基本: モデルは各々 Python のクラスであり dja ... 、自動的に追加されるかのどちらかで) 存在する必要があります。 詳細 (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
モデルフィールドリファレンス 10761
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... しようとすると、モデルの 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) 関係 10761
一対一 (one-to-one) 関係 一対一の関係を定義するには、 OneToOneField を使用します。 この例では、 Place は任意で Restaurant になることができます: from django.db import models class Place ( models . Model ): name = models . CharField ( max_len ... 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 リリースノート 9747
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.contenttypes 's or contrib.auth 's first migration ( #24075 ). Made the migration'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.9.7 リリースノート 9477
Django 1.9.7 リリースノート 2016年6月4日 Django 1.9.7 では、1.9.6 にあったいくつかのバグを修正しました。 バグ修正 Removed the need for the request context processor on the admin login page to fix a regression in 1.9 ( #26558 ). Fixed transl ... 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 ). ...
https://man.mtool.work/django/6.1/releases/1.9.7.html
Django 1.8.9 リリースノート 8970
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" items to display on the admin's logout page ( #26035 ). Fixed a crash in the translations system ... #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.8.7 リリースノート 8463
Django 1.8.7 リリースノート November 24, 2015 Django 1.8.7 fixes a security issue and several bugs in 1.8.6. Additionally, Django's vendored version of six, django.utils.six , has been upgraded to the latest release (1.10.0). Fixed settings ... #25685 ). Fixed set_FOO_order() crash when the ForeignKey of a model with order_with_respect_to references a model with a OneToOneField primary key ( #25786 ). Fixed incorrect validation for PositiveIntegerField and PositiveSmallIntegerField on MySQL resulti ...
https://man.mtool.work/django/6.1/releases/1.8.7.html
Django 2.0.1 リリースノート 8463
Django 2.0.1 リリースノート 2018年1月1日 Django 2.0.1 では、2.0 にあったいくつかのバグを修正しました。 バグ修正 Fixed a regression in Django 1.11 that added newlines between MultiWidget 's subwidgets ( #28890 ). Fixed incorrect class-based ... 場合にクエリセットのフィルタリングが再びできるようになりました ( #28896 )。 admin check が ModelAdmin.autocomplete_fields に OneToOneField がある場合でも正しく動作するようになりました ( #28898 )。 SQLite で DecimalField の小数点部分の末尾に 0 が付いていた場合に ...
https://man.mtool.work/django/6.1/releases/2.0.1.html
Django 6.1.1 release notes 8463
Django 6.1.1 release notes September 2, 2026 Django 6.1.1 fixes one crash in Django 5.2 and several bugs in 6.1. バグ修正 Fixed a crash in Django 5.2 when combining distinct(*fields) with order_by() and values() and using two lookup paths r ... ssion in Django 6.1 that caused AlterField operations that changed only the Python-level on_delete option of ForeignKey or OneToOneField fields to perform unnecessary schema changes ( #37260 ). Fixed a bug in Django 6.1 where DecimalField without max_digits a ...
https://man.mtool.work/django/6.1/releases/6.1.1.html
Django 1.11.1 リリースノート 7956
Django 1.11.1 リリースノート May 6, 2017 Django 1.11.1 adds a minor feature and fixes several bugs in 1.11. Allowed disabling server-side cursors on PostgreSQL The change in Django 1.11 to make QuerySet.iterator() use server-side cursors on ... 2値タプルを使用した際のクラッシュを修正しました ( #28042 )。 Fixed QuerySet.filter() crash when it references the name of a OneToOneField primary key ( #28047 ). Fixed empty POST data table appearing instead of "No POST data" in HTML debug page ( #28079 ). Res ...
https://man.mtool.work/django/6.1/releases/1.11.1.html
PREV 1 2 3 4 NEXT