uncommented get_field many_to_many warning and fixed a small issue related to casting