IPAddressField is meant for IPv4 addresses and GenericIPAddressField is for both IPv4 and IPv6. Most backends define different database data types for each of those fields. E.g. mysql is char(15) vs char(39). Forcing the larger data type on users doesn't make sense.
IPAddressField and GenericIPAddressField are similar to the various integer fields. When BigIntegerField was added to the core, IntegerField and SmallIntegerField still had their purpose. Regards, Michael Manfre On Sat, Aug 24, 2013 at 3:40 PM, Erik Romijn <[email protected]> wrote: > Hello all, > > On May 18, 2013, at 2:07 PM, Erik Romijn <[email protected]> wrote: > > As far as I know, IPAddressField has no current features that are not > also available in a GenericIPAddressField. Therefore, I suggest that we, > some time from now, deprecate IPAddressField, in favour of > GenericIPAddressField. > > Since this initial mail last May, I haven't seen any opinions against > deprecating IPAddressField, on this list or in #20439 [1]. > > I therefore propose that we start the deprecation of IPAddressField in > 1.7, in favour of GenericIPAddressField (which was introduced in 1.4). That > means PendingDeprecationWarning in 1.7, DeprecationWarning in 1.8 and > removal in 1.9. Obviously, I'll document how users can migrate - even if > they don't use South it's quite simple. > > What do you think? > > [1] https://code.djangoproject.com/ticket/20439 > > cheers, > Erik > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" 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]. > Visit this group at http://groups.google.com/group/django-developers. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Django developers" 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]. Visit this group at http://groups.google.com/group/django-developers. For more options, visit https://groups.google.com/groups/opt_out.
