Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Product(models.Model):
- seller = models.ForeignKey(SellerAccount)
- media = models.ImageField(blank=True,
- null=True,
- upload_to=download_media_location,
- storage=FileSystemStorage(location=settings.PROTECTED_ROOT))
- title = models.CharField(max_length=30)
- slug = models.SlugField(blank=True, unique=True)
- description = models.TextField()
- price = models.DecimalField(max_digits=100, decimal_places=2, default=9.99, null=True,)
- sale_active = models.BooleanField(default=False)
- sale_price = models.DecimalField(max_digits=100,
- decimal_places=2, default=6.99, null=True, blank=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement