add product
This commit is contained in:
1 parent
423d4cf40e
commit
c8d45dd07c
58 files changed
+8309
-674
No files matched your search
@@ -0,0 +1,22 @@
|
||||
from django.conf import settings
|
||||
from django.db import models
|
||||
|
||||
|
||||
class ProductImportBatch(models.Model):
|
||||
sys_ws = models.ForeignKey('workspace.Workspace', on_delete=models.CASCADE)
|
||||
created_by = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.PROTECT)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
expires_at = models.DateTimeField()
|
||||
confirmed_at = models.DateTimeField(null=True, blank=True)
|
||||
filename = models.CharField(max_length=255)
|
||||
fingerprint = models.CharField(max_length=64)
|
||||
payload = models.JSONField()
|
||||
result = models.JSONField(default=dict)
|
||||
|
||||
class Meta:
|
||||
ordering = ('-pk',)
|
||||
verbose_name = 'ورود اکسل محصولات'
|
||||
verbose_name_plural = 'سوابق ورود اکسل محصولات'
|
||||
|
||||
def __str__(self):
|
||||
return f'{self.pk}: {self.filename}'
|
||||
Reference in new issue
Block a user