django-2.0: Add on_delete to OneToOneField.

This commit is contained in:
Umair Khan
2018-01-31 10:33:08 +05:00
committed by Tim Abbott
parent a446c030c5
commit 0d796e6c02

View File

@@ -28,4 +28,4 @@ class RemotePushDeviceToken(AbstractPushDeviceToken):
class Customer(models.Model):
stripe_customer_id = models.CharField(max_length=255, unique=True)
realm = models.OneToOneField(Realm)
realm = models.OneToOneField(Realm, on_delete=models.CASCADE)