def set_decor_inner(level, decor, LevelDecor):
    """ Helper method creating LevelDecor objects given a list of decor in dictionary form."""
    LevelDecor.objects.filter(level=level).delete()
    level_decors = []
    for data in decor:
        level_decors.append(LevelDecor(level_id=level.id, x=data['x'], y=
            data['y'], decorName=data['decorName']))
    LevelDecor.objects.bulk_create(level_decors)
