Add created to products search results
This commit is contained in:
parent
fccffa93e3
commit
5b11b6b8fc
|
|
@ -149,6 +149,7 @@ class ProductDocument(Document):
|
|||
name_ru = fields.TextField(attr='display_name', analyzer='russian')
|
||||
name_fr = fields.TextField(attr='display_name', analyzer='french')
|
||||
favorites_for_users = fields.ListField(field=fields.IntegerField())
|
||||
created = fields.DateField(attr='create') # publishing date (?)
|
||||
|
||||
class Django:
|
||||
model = models.Product
|
||||
|
|
|
|||
|
|
@ -290,4 +290,5 @@ class ProductDocumentSerializer(InFavoritesMixin, DocumentSerializer):
|
|||
'grape_variety',
|
||||
'establishment_detail',
|
||||
'average_price',
|
||||
'created',
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user