def update_upload_to_ia_field(apps, schema_editor):
    Link = apps.get_model('perma', 'Link')
    Link.objects.filter(uploaded_to_internet_archive=True).update(internet_archive_upload_status='completed')
    Link.objects.filter(uploaded_to_internet_archive=False).update(internet_archive_upload_status='not_started')
    HistoricalLink = apps.get_model('perma', 'HistoricalLink')
    HistoricalLink.objects.filter(uploaded_to_internet_archive=True).update(internet_archive_upload_status='completed')
    HistoricalLink.objects.filter(uploaded_to_internet_archive=False).update(internet_archive_upload_status='not_started')
def update_upload_to_ia_field(apps, schema_editor):
    Link = apps.get_model('perma', 'Link')
    Link.objects.filter(uploaded_to_internet_archive=True).update(internet_archive_upload_status='completed')
    Link.objects.filter(uploaded_to_internet_archive=False).update(internet_archive_upload_status='not_started')
    HistoricalLink = apps.get_model('perma', 'HistoricalLink')
    HistoricalLink.objects.filter(uploaded_to_internet_archive=True).update(internet_archive_upload_status='completed')
    HistoricalLink.objects.filter(uploaded_to_internet_archive=False).update(internet_archive_upload_status='not_started')