code: def _cm_handle_canonical_id(canonical_id, current_id, cloud_type):
  	
  	devices = GCMDevice.objects.filter(cloud_message_type=cloud_type)
  	if devices.filter(registration_id=canonical_id, active=True).exists():
  		devices.filter(registration_id=current_id).update(active=False)
  	else:
  		devices.filter(registration_id=current_id).update(registration_id=canonical_id)
docs: Handle situation when FCM server response contains canonical ID