product search respects season & region

This commit is contained in:
2019-09-19 12:39:15 -07:00
parent da41a912b0
commit c964cc3abd
3 changed files with 39 additions and 21 deletions

View File

@ -71,3 +71,17 @@ class ProductImage:
path = ProductImage.get_image_path(sap, image_format)
if path:
return path.replace(ProductImage.THUMB_DIR, ProductImage.THUMB_URL)
class SeasonRegionMaterial(models.Model):
"""Lists where and when a material is valid."""
id = models.IntegerField(primary_key=True)
material = models.CharField(max_length=10)
season = models.CharField(max_length=4)
region = models.CharField(max_length=20)
ranking = models.IntegerField()
class Meta:
managed = False
db_table = "keen_season_region_material"