#25456: Make GenericIPAddressField 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:  Accepted
  database, normalization            |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by darjeeling):

 I think is it possible to add django.utils.ipv4 ?
 for ipv6 normalize, django have **django.utils.ipv6.clean_ipv6_address**.
 but I think removing leading zero took about 5~6 lines function.
 which namespace is proper to add this function? maybe name will be
 **normalize_ipv4_address**

--
Ticket URL: <https://code.djangoproject.com/ticket/25456#comment:4>
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.5d6374b0516274a0983d5e6a60bbd642%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to