def get_parent_for_portlets(self):
        if self.is_variant():
            return self.parent
        else:
            # TODO Return the current category
            try:
                return self.categories.all()[0]
            except:
                return None
Returns the current category. This will add the portlets of the current
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.get_parent_for_portlets