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):
|
def by_product_type(self, index_name):
|
||||||
"""Filter by product type 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):
|
def with_tags(self, switcher=True):
|
||||||
"""Filter by existing tags."""
|
"""Filter by existing tags."""
|
||||||
|
|
|
||||||
|
|
@ -80,11 +80,11 @@ LOGGING = {
|
||||||
'py.warnings': {
|
'py.warnings': {
|
||||||
'handlers': ['console'],
|
'handlers': ['console'],
|
||||||
},
|
},
|
||||||
# 'django.db.backends': {
|
'django.db.backends': {
|
||||||
# 'handlers': ['console', ],
|
'handlers': ['console', ],
|
||||||
# 'level': 'DEBUG',
|
'level': 'DEBUG',
|
||||||
# 'propagate': False,
|
'propagate': False,
|
||||||
# },
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user