﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35699	DatabaseOperations raise ValueError for valid GenericIPAddressField (inet) value with psycopg3	florianvazelle		"I move recently to psycopg3, and it's seems that the {{{Inet}}} class change to be an alias of {{{ipaddress.ip_address}}} in [https://github.com/django/django/blob/main/django/db/backends/postgresql/psycopg_any.py#L12].
But some valid inet value raise an {{{ValueError}}}, such as:


{{{
>>> import ipaddress
>>> ipaddress.ip_address(""192.168.1/24"")
Traceback (most recent call last):
  File ""<stdin>"", line 1, in <module>
  File ""/home/florian/.pyenv/versions/3.11.9/lib/python3.11/ipaddress.py"", line 54, in ip_address
    raise ValueError(f'{address!r} does not appear to be an IPv4 or IPv6 address')
ValueError: '192.168.1/24' does not appear to be an IPv4 or IPv6 address
}}}

Reference: [https://www.postgresql.org/docs/current/datatype-net-types.html#DATATYPE-INET]
"	Bug	new	Database layer (models, ORM)		Normal		psycopg3,GenericIPAddressField		Unreviewed	0	0	0	0	0	0
