fix bug where ranges would show up N number of times in range selection part of the IP widget (where N was the number of user made ranges)
fix regression due to django upgrade
fixes #28. better parsing of fqdn for automatic ip assignment