created at field

This commit is contained in:
Parsa Nazer
2025-05-22 18:03:58 +03:30
parent 0e4a28aafd
commit 421734794a
3 changed files with 27 additions and 3 deletions
+3
View File
@@ -115,6 +115,7 @@ class ProductModel(models.Model):
def __str__(self):
return self.name
@@ -244,6 +245,8 @@ class ProductVariant(models.Model):
video = models.FileField(upload_to='product_videos/', blank=True, null=True, verbose_name='ویدیو')
details = models.ManyToManyField(ProductDetailModel, verbose_name='جزییات محصول', related_name='product')
slider_category = models.ForeignKey(ShowCaseSlider, verbose_name='دسته بندی پورسانتی', blank=True, null=True, on_delete=models.CASCADE)
created_at = models.DateTimeField(auto_now_add=True, verbose_name='زمان ثبت محصول')
class Meta:
verbose_name = 'تنوع محصول'
verbose_name_plural = 'تنوع‌های محصول'