Results of 11 - 20 of about 67 for ForeignKey (0.048 sec.)
- The "sites" framework — Django 4.0.6 ドキュメント 7852
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
he Site model in a many-to-one relationship, using ForeignKey . For example, if an article is only allowed on a ...
arField ( max_length = 200 ) # ... site = models . ForeignKey ( Site , on_delete = models . CASCADE ) This has t ...
) pub_date = models . DateField () site = models . ForeignKey ( Site , on_delete = models . CASCADE ) objects = ...
y default, CurrentSiteManager looks for a either a ForeignKey called site or a ManyToManyField called sites to f ...
-
https://man.plustar.jp/django/ref/contrib/sites.html
- [similar]
- 複数のデータベース — Django 4.0.6 ドキュメント 7753
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
on. This is purely a validation operation, used by foreign key and many to many operations to determine if a rel ...
that already have migrations may result in broken foreign keys, extra tables, or missing tables. When makemigra ...
quest ) . using ( self . using ) def formfield_for_foreignkey ( self , db_field , request , ** kwargs ): # Tell ...
Django to populate ForeignKey widgets using a query # on the 'other' database. r ...
-
https://man.plustar.jp/django/topics/db/multi-db.html
- [similar]
- SchemaEditor — Django 4.0.6 ドキュメント 7554
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
like transactions and deferred SQL (like creating ForeignKey constraints). It exposes all possible operations a ...
l databases - for example, MyISAM does not support foreign key constraints. If you are writing or maintaining a ...
ough is provided, it is a no-op. If the field is a ForeignKey , this will also add the foreign key constraint to ...
model's table, along with any unique constraints, foreign key constraints, or indexes caused by that field. If ...
-
https://man.plustar.jp/django/ref/schema-editor.html
- [similar]
- Django 1.8.7 リリースノート — Django 4.0.6 ドキュメント 7554
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
25666 ). Fixed Model.refresh_from_db() updating of ForeignKey fields with on_delete=models.SET_NULL ( #25715 ). ...
n ( #25685 ). Fixed set_FOO_order() crash when the ForeignKey of a model with order_with_respect_to references a ...
-
https://man.plustar.jp/django/releases/1.8.7.html
- [similar]
- QuerySet API リファレンス — Django 4.0.6 ドキュメント 7340
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ます(たとえば、 ManyToManyField フィールド、もしくは ForeignKey フィールドの逆参照など)。 このケースを考えます: cl ...
ass Event ( Model ): parent = models . ForeignKey ( 'self' , on_delete = models . CASCADE , related_ ...
ntioning: If you have a field called foo that is a ForeignKey , the default values() call will return a dictiona ...
els with reverse relations through OneToOneField , ForeignKey and ManyToManyField attributes: >>> Blog . objects ...
-
https://man.plustar.jp/django/ref/models/querysets.html
- [similar]
- モデルからフォームを作成する — Django 4.0.6 ドキュメント 7340
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
FilePathField FilePathField FloatField FloatField ForeignKey ModelChoiceField (see below) ImageField ImageField ...
eld UUIDField UUIDField お気付きかもしれませんが、 ForeignKey と ManyToManyField の 2 つのモデルフィールドは特殊 ...
なケースとなります: ForeignKey は django.forms.ModelChoiceField によって表現され、 ...
) class Book ( models . Model ): author = models . ForeignKey ( Author , on_delete = models . CASCADE ) title = ...
-
https://man.plustar.jp/django/topics/forms/modelforms.html
- [similar]
- FAQ: 管理インタフェース — Django 4.0.6 ドキュメント 7241
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
示されません。 ¶ おかしな行数カウントが発生するのは、ForeignKeyの値が抜けている場合、または ForeignKeyであるフィール ...
って null=False に設定されていることが原因です。もし ForeignKey が存在しないオブジェクトを指しているデータがあり、 ...
-
https://man.plustar.jp/django/faq/admin.html
- [similar]
- The Django admin documentation generator — Django 4.0.6 ドキュメント 7241
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
abel, generally used in URLs." ) author = models . ForeignKey ( User , models . SET_NULL , blank = True , null = ...
True , ) blog = models . ForeignKey ( Blog , models . CASCADE ) ... def publish ( self ...
-
https://man.plustar.jp/django/ref/contrib/admin/admindocs.html
- [similar]
- How to create database migrations — Django 4.0.6 ドキュメント 7141
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ew through model should use the same names for the ForeignKey s as Django did. Also if it needs any extra fields ...
verbose_name = 'ID' , ), ), ( 'author' , models . ForeignKey ( on_delete = django . db . models . deletion . DO ...
G , to = 'core.Author' , ), ), ( 'book' , models . ForeignKey ( on_delete = django . db . models . deletion . DO ...
-
https://man.plustar.jp/django/howto/writing-migrations.html
- [similar]
- PostgreSQL specific database constraints — Django 4.0.6 ドキュメント 7141
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ss Reservation ( models . Model ): room = models . ForeignKey ( 'Room' , on_delete = models . CASCADE ) timespan ...
ss Reservation ( models . Model ): room = models . ForeignKey ( 'Room' , on_delete = models . CASCADE ) start = ...
-
https://man.plustar.jp/django/ref/contrib/postgres/constraints.html
- [similar]