try to fix tag categories
(cherry picked from commit 376d22c)
This commit is contained in:
parent
7d26d4a0cf
commit
a305c6ba83
|
|
@ -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."""
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user