- Language: en
30 results for OneToOneField in version 5.1
-
Model field reference
- … OneToOneField class OneToOneField ( to , on_delete , parent_link = False , ** options ) [source] A one-to-one relationship …
-
Django 1.9 release notes
- … OneToOneField on_delete argument In order to increase awareness about cascading model deletion, the on_delete …
-
Models
- … OneToOneField fields also accept an optional parent_link argument. OneToOneField classes used to automatically become …
-
QuerySet API reference
- … OneToOneField , ForeignKey and ManyToManyField attributes: >>> Blog . objects . values ( "name" , "entry …
-
Making queries
- … OneToOneField , you must duplicate the related object and assign it to the new object’s field …
-
One-to-one relationships
- … OneToOneField . In this example, a Place optionally can be a Restaurant : from django.db import models …
-
Django 1.10 release notes
- … OneToOneField that point to another field. The arity class attribute is added to Func . This …
-
Customizing authentication in Django
- … OneToOneField to a model containing the fields for additional information. This one-to-one model …
-
Django 2.0 release notes
- … OneToOneField is now required in models and migrations. Consider squashing migrations so that you have …
-
Django 3.0 release notes
- … OneToOneField when a foreign key has a unique or primary key constraint. The new --skip …