try to fix tag categories

(cherry picked from commit 376d22c)
This commit is contained in:
Kuroshini 2019-10-16 14:11:07 +03:00
parent 7d26d4a0cf
commit a305c6ba83
2 changed files with 6 additions and 6 deletions

View File

@ -109,7 +109,7 @@ class TagCategoryQuerySet(models.QuerySet):
def by_product_type(self, index_name):
"""Filter by product type index name."""
return self.filter(product_types__index_name=index_name)
return self.filter(tags__products__product_type__index_name=index_name)
def with_tags(self, switcher=True):
"""Filter by existing tags."""

View File

@ -80,11 +80,11 @@ LOGGING = {
'py.warnings': {
'handlers': ['console'],
},
# 'django.db.backends': {
# 'handlers': ['console', ],
# 'level': 'DEBUG',
# 'propagate': False,
# },
'django.db.backends': {
'handlers': ['console', ],
'level': 'DEBUG',
'propagate': False,
},
}
}