diff --git a/backend/.gitignore b/backend/.gitignore index b1d24a7..aa974db 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -1,5 +1,6 @@ # Byte-compiled / optimized / DLL files __pycache__/ +migrations/ *.py[cod] *$py.class diff --git a/backend/product/models.py b/backend/product/models.py index 9cae4b0..3ecb808 100644 --- a/backend/product/models.py +++ b/backend/product/models.py @@ -78,6 +78,7 @@ class ProductModel(models.Model): image1 = models.ImageField(upload_to='product_images/') image2 = models.ImageField(upload_to='product_images/', blank=True, null=True) image3 = models.ImageField(upload_to='product_images/', blank=True, null=True) + video = models.FileField(upload_to='product_videos/', blank=True, null=True) rating = models.PositiveIntegerField(default=0) view = models.IntegerField(default=0, verbose_name='بازدید') sell = models.IntegerField(default=0, verbose_name='فروش')