def categories(self):
        return Category.objects.filter(
            elements__environments__profile=self).distinct().order_by("name")
Return an iterable of categories that are part of this profile.
dataset/ETHPy150Open mozilla/moztrap/moztrap/model/environments/models.py/Profile.categories