adding image files

This commit is contained in:
2022-03-20 17:49:44 -05:00
parent 5c78a7fb04
commit b197619b2b
33 changed files with 24 additions and 11 deletions
+1
View File
@@ -4,6 +4,7 @@ class Images(models.Model):
album_id = models.IntegerField(default=0)
smug_user = models.ForeignKey("Smug_Users", on_delete=models.CASCADE)
upload_date = models.DateTimeField(auto_now_add=True)
file_name = models
picture = models.ImageField(
upload_to='smugimages', height_field=None,
width_field=None, max_length=None, null=True