fixed tags
This commit is contained in:
parent
04f3823047
commit
7fcba802c1
|
|
@ -410,7 +410,7 @@ class ProductSerializer(TransferSerializerMixin):
|
||||||
return village_qs.first()
|
return village_qs.first()
|
||||||
|
|
||||||
def get_tag(self, tag, category_index_name: str):
|
def get_tag(self, tag, category_index_name: str):
|
||||||
tag = tag.value if hasattr(tag, 'value') else tag
|
tag = tag.name if hasattr(tag, 'name') else tag
|
||||||
if tag:
|
if tag:
|
||||||
qs = tag_models.Tag.objects.filter(
|
qs = tag_models.Tag.objects.filter(
|
||||||
value=tag,
|
value=tag,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user