I’m trying to create a model instance from my code, and I pass all needed (and not null) parameters, but I’m getting 500 error which says that new_ip is None. How can I investigate the problem more deeply?
new_ip = IP(pool=new_adapter.get_ip_pool(), vds_interface=new_adapter, ip=ip)
new_ip.save()
P.S. ip is string, the field is IPAddressField.
you should try this