@staticmethod
    def _track_info_to_dict(track_info):
        # figure it's better to hardcode keys here than use introspection
        # and risk returning a new field all of a sudden.

        return dict((field, getattr(track_info, field)) for field in
                    ('id', 'title', 'album', 'album_artist', 'artist',
                     'track_number', 'track_size', 'disc_number',
                     'total_disc_count'))
Check formset is a subclass of BaseModelFormSet.
dataset/ETHPy150Open simon-weber/gmusicapi/gmusicapi/clients/musicmanager.py/Musicmanager._track_info_to_dict--crossover with--dataset/ETHPy150Open django/django/django/contrib/admin/checks.py/InlineModelAdminChecks._check_formset