

def migrate_network_fields(apps, schema_editor):
    '\n    Migrate new Network fields.\n    '
    Network = apps.get_model('nsot', 'Network')
    Network_temp = apps.get_model('nsot', 'Network_temp')
    for net in Network.objects.iterator():
        net_tmp = Network_temp.objects.create(network_address=net.network_address, broadcast_address=net.broadcast_address, prefix_length=net.prefix_length, ip_version=net.ip_version, is_ip=net.is_ip, id=net.resource_ptr_id, parent_id=net.parent_id, _attributes_cache=net._attributes, site=net.site)

dataset/ETHPy150Open dropbox/nsot/nsot/migrations/0017_move_network_data.py migrate_network_fields/original