def __getitem__(self, name):
        if name in MEDIA_TYPES:
            return Media(**{str(name): getattr(self, '_' + name)})
        raise KeyError('Unknown media type "%s"' % name)
Returns a Media object that only contains media of the given type
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/forms/widgets.py/Media.__getitem__