some changes in inventory serializer - creted date & distribution data
This commit is contained in:
@@ -135,12 +135,18 @@ class Product(BaseModel):
|
||||
|
||||
|
||||
class ProductStats(BaseModel):
|
||||
product = models.OneToOneField(
|
||||
product = models.ForeignKey(
|
||||
Product,
|
||||
on_delete=models.CASCADE,
|
||||
related_name='stats',
|
||||
null=True
|
||||
)
|
||||
organization = models.ForeignKey(
|
||||
Organization,
|
||||
on_delete=models.CASCADE,
|
||||
related_name='product_stats',
|
||||
null=True
|
||||
)
|
||||
quotas_number = models.PositiveBigIntegerField(default=0)
|
||||
active_quotas_weight = models.PositiveBigIntegerField(default=0)
|
||||
closed_quotas_weight = models.PositiveBigIntegerField(default=0)
|
||||
|
||||
Reference in New Issue
Block a user