def fix_duplicate_names(apps, schema_editor):
    Lesson = apps.get_model('workshops', 'Lesson')
    Qualification = apps.get_model('workshops', 'Qualification')
    try:
        right_lesson = Lesson.objects.get(name='Matlab')
        wrong_lesson = Lesson.objects.get(name='MATLAB')
        Qualification.objects.filter(lesson=wrong_lesson) \
                             .update(lesson=right_lesson)
    except Lesson.DoesNotExist:
        pass
Verifies an api call and checks all the parameters.
dataset/ETHPy150Open swcarpentry/amy/workshops/migrations/0012_auto_20150612_0807.py/fix_duplicate_names--crossover with--dataset/ETHPy150Open mrgaaron/LinkedIn-Client-Library/liclient/oauth2/__init__.py/Server.verify_request