1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

django on_delete statement is must after than

This commit is contained in:
catborise 2018-08-08 14:50:58 +03:00
parent b05a252d7c
commit aa32d826d9
4 changed files with 62 additions and 4 deletions

View file

@ -3,7 +3,7 @@ from computes.models import Compute
class Instance(models.Model):
compute = models.ForeignKey(Compute)
compute = models.ForeignKey(Compute, on_delete=models.CASCADE)
name = models.CharField(max_length=120)
uuid = models.CharField(max_length=36)
is_template = models.BooleanField(default=False)