product search respects season & region
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user