remove the delete option from the picture model

This option got added by accident. If we would keep it then the
related article would get deleted when one deletes a picture.
This commit is contained in:
Andreas Zweili 2018-01-14 12:22:46 +01:00
parent 2f58fcec94
commit e54765a54f
1 changed files with 1 additions and 1 deletions

View File

@ -68,8 +68,8 @@ class OrderOfGoods(models.Model):
class Picture(models.Model):
article = models.ForeignKey(Article, on_delete=models.CASCADE)
name = models.CharField(max_length=200)
article = models.ForeignKey(Article)
image = models.ImageField(upload_to="images")
def __str__(self):