update django
This commit is contained in:
parent
5ad5fc0798
commit
9a731560a6
12 changed files with 102 additions and 60 deletions
|
|
@ -99,6 +99,6 @@ class Cover(models.Model):
|
|||
created = models.DateTimeField(auto_now_add=True)
|
||||
modified = models.DateTimeField(auto_now=True)
|
||||
|
||||
isbn = models.ForeignKey(MovieId, related_name='cover')
|
||||
isbn = models.ForeignKey(MovieId, related_name='cover', on_delete=models.CASCADE)
|
||||
cover = models.ImageField(max_length=255, upload_to=cover_image_path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue