This gist assumes that an app named base
exists and is included in INSTALLED_APPS
via base.apps.BaseConfig
.
base.utils.delete_related_onetoonefield
works by looping thru the model instance's available fields and deleting all non-null django.db.models.fields.related.OneToOneField
instances.