Django Public Recipes
The code declares a new OneToOneField, called fieldName, in the model RelatedModel. The on_delete attribute specifies that when a user deletes an entry in RelatedModel, fieldName will be automatically updated to reflect the deletion.
Library: django
Shortcut: django.field.one_to_one
fieldName = models.OneToOneField(relatedModel, on_delete=models.CASCADE)