- Language: en
27 results for OneToOneField in version 2.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 …
-
Customizing authentication in Django
- … OneToOneField to a model containing the fields for additional information. This one-to-one model …
-
Django 1.10 release notes
- … OneToOneField that point to another field. The arity class attribute is added to Func . This …
-
Django Deprecation Timeline
- … OneToOneField will be required. django.db.models.fields.add_lazy_relation() will be removed. When time zone support is enabled …
-
One-to-one relationships
- … OneToOneField . In this example, a Place optionally can be a Restaurant : from django.db import models …
-
Writing custom model fields
- … OneToOneField used by model inheritance. For advanced use only. All of the options without an explanation …