feat: Add basic image upload (WIP)

This commit is contained in:
2024-03-20 11:38:30 +01:00
parent 68e6d3e299
commit 240ced0374
7 changed files with 33 additions and 5 deletions

View File

@@ -11,7 +11,6 @@ class Image(models.Model):
title = models.CharField(max_length=200)
image = models.ImageField(upload_to='images')
alt_text = models.TextField(max_length=2000)
uploaded_by = models.ForeignKey(User, on_delete=models.CASCADE)
def __str__(self):
return self.title