def update_interface_device_hostname(apps, schema_editor):
    """Update all interfaces with hostname from associated device"""
    Device = apps.get_model('nsot', 'Device')
    for dev in Device.objects.iterator():
        dev.interfaces.update(device_hostname=dev.hostname)
