

@classmethod
def register_filetypes(cls, *types):
    t.filetypes[0:0] = types
    choices = [t[0:2] for t in cls.filetypes]
    cls.filetypes_dict = dict(choices)
    cls._meta.get_field('type').choices[:] = choices

dataset/ETHPy150Open feincms/feincms/feincms/module/medialibrary/models.py MediaFileBase.register_filetypes/VarMisuse@16/19 `cls`->`t`