Merge branch 'dev' of https://github.com/jh8579/fileshell_cloudcomputing into dev
# Conflicts: # fileshell/models.py # fileshell/settings.py # fileshell/urls.py # fileshell/views.py # templates/base.html
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -8,9 +8,9 @@ class File(models.Model): | ... | @@ -8,9 +8,9 @@ class File(models.Model): |
8 | isFavor = models.BooleanField(default=False) | 8 | isFavor = models.BooleanField(default=False) |
9 | bucketPath = models.CharField(max_length=50) | 9 | bucketPath = models.CharField(max_length=50) |
10 | fileSize = models.IntegerField() | 10 | fileSize = models.IntegerField() |
11 | - folder = models.ForeignKey('Folder', null=True, blank=True, related_name='datas') | 11 | + folder = models.ForeignKey('Folder', null=True, blank=True, related_name='datas', on_delete=models.CASCADE,) |
12 | 12 | ||
13 | class Folder(models.Model): | 13 | class Folder(models.Model): |
14 | dir_name = models.CharField(max_length=30) | 14 | dir_name = models.CharField(max_length=30) |
15 | user = models.CharField(max_length=20, default='') | 15 | user = models.CharField(max_length=20, default='') |
16 | - parent = models.ForeignKey('self', related_name='child', null=True, blank=True) | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
16 | + parent = models.ForeignKey('self', related_name='child', null=True, blank=True, on_delete=models.CASCADE) | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment