def belongs_to_group(self, name):
        try:
            self.groups.get(name=name)
        except Group.DoesNotExist:
            return False
        return True
Simple shortcut to check if this user is a member of a
dataset/ETHPy150Open tonioo/modoboa/modoboa/core/models.py/User.belongs_to_group