Skip to content

Commit

Permalink
django-2.0: Add on_delete to OneToOneField.
Browse files Browse the repository at this point in the history
  • Loading branch information
umairwaheed authored and timabbott committed Jan 31, 2018
1 parent a446c03 commit 0d796e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zilencer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ class Meta:

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)

0 comments on commit 0d796e6

Please sign in to comment.