Fix a problem with ipaddr not being importable in management commands