jimfunk / django-postgresql-netfields

Proper INET and CIDR fields for Django running on PostgreSQL
BSD 3-Clause "New" or "Revised" License
154 stars 65 forks source link

Netfields support for store_prefix=False on InetAddressField #92

Closed nickhuber closed 5 years ago

nickhuber commented 5 years ago

This change ensures that the type used is ip_address instead of ip_interface when store_prefix is false to prevent unexpected network masks from being saved into the database.

jimfunk commented 5 years ago

Thanks!