def __getitem__(self, item):
        if isinstance(item, slice):
            return QFactory('{}_{}'.format(item.start, item.stop), self)
        else:
            return QFactory(str(item), self)
>>> Q.user.tags[0].name == 'My Tag'
dataset/ETHPy150Open Nepherhotep/django-orm-sugar/django_orm_sugar.py/QFactory.__getitem__