検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 67 for ForeignKey (0.020 sec.)
モデルフィールドリファレンス — Django 4.0.6 ドキュメント 15563
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ly better off using a proper database table with a ForeignKey . choices is meant for static data that doesn't ch ... t documentation for other caveats. For fields like ForeignKey that map to model instances, defaults should be th ... レーションを表すフィールドのセットも定義しています。 ForeignKey ¶ class ForeignKey ( to , on_delete , ** options ) ... many-to-one relationship with itself -- use models.ForeignKey('self', on_delete=models.CASCADE) . If you need to ...
https://man.plustar.jp/django/ref/models/fields.html - [similar]
Related objects reference — Django 4.0.6 ドキュメント 10598
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... . This happens in two cases: The "other side" of a ForeignKey relation. That is: from django.db import models cl ... ss class Entry ( models . Model ): blog = models . ForeignKey ( Blog , on_delete = models . CASCADE , null = Tru ... ith Blog b. In the example above, in the case of a ForeignKey relationship, QuerySet.update() is used to perform ... normally primary keys, as the *objs argument. For ForeignKey objects, this method only exists if null=True . If ...
https://man.plustar.jp/django/ref/models/relations.html - [similar]
Django の admin サイト — Django 4.0.6 ドキュメント 10385
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 照してください。 警告 リレーションフィールド (例えば ForeignKey や ManyToManyField ) でカスタムウィジェットを使用し ... splay に関する特殊な状況の注意点です: フィールドが ForeignKey の場合、 Django は関係オブジェクトの __str__() を表 ... . CharField ( max_length = 255 ) author = models . ForeignKey ( Person , on_delete = models . CASCADE ) class Bl ... d 、 DateField 、 DateTimeField 、 IntegerField 、 ForeignKey 、 ManyToManyField のどれかを指定します。たとえば: ...
https://man.plustar.jp/django/ref/contrib/admin/index.html - [similar]
モデル — Django 4.0.6 ドキュメント 9175
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... class Album ( models . Model ): artist = models . ForeignKey ( Musician , on_delete = models . CASCADE ) name = ... lways AutoField s. 詳細な (verbose) フィールド名 ¶ ForeignKey 、 ManyToManyField 、 OneToOneField の 3 つを除いた ... irst_name = models . CharField ( max_length = 30 ) ForeignKey 、 ManyToManyField 、 OneToOneField の 3 つは最初の ... キーワード引数を使用してください: poll = models . ForeignKey ( Poll , on_delete = models . CASCADE , verbose_na ...
https://man.plustar.jp/django/topics/db/models.html - [similar]
クエリを作成する — Django 4.0.6 ドキュメント 8962
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... me class Entry ( models . Model ): blog = models . ForeignKey ( Blog , on_delete = models . CASCADE ) headline = ... が呼ばれるまで Django はデータベースを操作しません。 ForeignKey と ManyToManyField フィールドを扱う ¶ Updating a F ... ド名でなければなりません。ただし1つだけ例外があり、 ForeignKey の場合にはフィールド名の末尾に _id を付けた名前を指 ... 横断 ¶ When spanning a ManyToManyField or a reverse ForeignKey (such as from Blog to Entry ), filtering on multip ...
https://man.plustar.jp/django/topics/db/queries.html - [similar]
contenttypes フレームワーク — Django 4.0.6 ドキュメント 8663
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ntication framework uses a Permission model with a foreign key to ContentType ; this lets Permission represent c ... ) <ContentType: user> Generic relations ¶ Adding a foreign key from one of your own models to ContentType allows ... m django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import Con ... ag = models . SlugField () content_type = models . ForeignKey ( ContentType , on_delete = models . CASCADE ) obj ...
https://man.plustar.jp/django/ref/contrib/contenttypes.html - [similar]
Django 1.9.5 リリースノート — Django 4.0.6 ドキュメント 8663
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... when using a reverse lookup with a subquery when a ForeignKey has a to_field set to something other than the pri ... n renaming the primary key of a model containing a ForeignKey to 'self' ( #26384 ). Fixed JSONField inadvertentl ... regression , caused , their , fields , trailing , ForeignKey , primary クイック検索 Last update: 2022年6月01日 ...
https://man.plustar.jp/django/releases/1.9.5.html - [similar]
多対一 (many-to-one) 関係 — Django 4.0.6 ドキュメント 8564
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ) 関係 ¶ To define a many-to-one relationship, use ForeignKey : from django.db import models class Reporter ( mo ... b_date = models . DateField () reporter = models . ForeignKey ( Reporter , on_delete = models . CASCADE ) def __ ... must save an object before it can be assigned to a foreign key relationship. For example, creating an Article wi ... their articles will be deleted (assuming that the ForeignKey was defined with django.db.models.ForeignKey.on_de ...
https://man.plustar.jp/django/topics/db/examples/many_to_one.html - [similar]
Django 1.8.2 リリースノート — Django 4.0.6 ドキュメント 8464
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ySQL when the query's model has a self-referential foreign key ( #24748 ). Implemented ForeignKey.get_db_prep_va ... lue() so that ForeignKey s pointing to UUIDField and inheritance on models ... x (unique_together or index_together) containing a foreign key ( #24757 ). Fixed session cookie deletion when us ... tion ( #24791 ). Fixed display of contrib.admin 's ForeignKey widget when it's used in a row with other fields ( ...
https://man.plustar.jp/django/releases/1.8.2.html - [similar]
システムチェックフレームワーク — Django 4.0.6 ドキュメント 7952
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... name> must be unique because it is referenced by a ForeignKey . fields.E312 : The to_field <field name> doesn't ... ediate model by <model> , but it has more than two foreign keys to <model> , which is ambiguous. You must specif ... y which two foreign keys Django should use via the through_fields keyword ... ediate model by <model> , but it has more than one foreign key from <model> , which is ambiguous. You must speci ...
https://man.plustar.jp/django/ref/checks.html - [similar]
PREV 1 2 3 4 5 6 7 NEXT