30
you should use the .exists method:
related_categories = example_category.related_categories
if related_categories.exists():
# do something
Source:stackexchange.com
30
you should use the .exists method:
related_categories = example_category.related_categories
if related_categories.exists():
# do something