#25456: GenericIPAddressField does not normalize IPv4 addresses
-------------------------------------+-------------------------------------
     Reporter:  frankvdp             |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  1.8
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  ipaddress, ipv4,     |             Triage Stage:
  database, normalization            |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by timgraham):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Does the behavior change justify breaking backwards compatibility
 (silently changing the input value)? Perhaps so, considering that
 PostgreSQL (and its native IP address data type) won't let you store
 duplicate values. It reports "Key (ip)=(192.168.1.10) already exists." for
 the two addresses you proposed -- so is the proper normalization to remove
 the leading zero?

--
Ticket URL: <https://code.djangoproject.com/ticket/25456#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.5b8ccd787d400430207ee56eb79e8dee%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to