comfy/artel/store/models.py

17 wiersze
414 B
Python
Czysty Zwykły widok Historia

2023-04-24 20:11:27 +00:00
from django.db import models
class Product(models.Model):
template = models.ForeignKey("exhibitions.Exhibit", on_delete=models.CASCADE)
class ProductSource(models.Model):
name = models.CharField(max_length=255)
class ProductConfig(models.Model):
source = models.ForeignKey(ProductSource, on_delete=models.CASCADE)
color = models.CharField(max_length=255)
price = models.FloatField()