Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. class Product(models.Model):
  2. seller = models.ForeignKey(SellerAccount)
  3. media = models.ImageField(blank=True,
  4. null=True,
  5. upload_to=download_media_location,
  6. storage=FileSystemStorage(location=settings.PROTECTED_ROOT))
  7. title = models.CharField(max_length=30)
  8. slug = models.SlugField(blank=True, unique=True)
  9. description = models.TextField()
  10. price = models.DecimalField(max_digits=100, decimal_places=2, default=9.99, null=True,)
  11. sale_active = models.BooleanField(default=False)
  12. sale_price = models.DecimalField(max_digits=100,
  13. decimal_places=2, default=6.99, null=True, blank=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement