db.models.GenericIPAddressField.unpack_ipv4

GenericIPAddressField.unpack_ipv4

Unpacks IPv4 mapped addresses like ::ffff:192.0.2.1. If this option is enabled that address would be unpacked to 192.0.2.1. Default is disabled. Can only be used when protocol is set to 'both'.

If you allow for blank values, you have to allow for null values since blank values are stored as null.

doc_Django
2016-10-09 18:35:47
Comments
Leave a Comment

Please login to continue.