Hi, On Wed, Jun 26, 2013 at 04:27:19PM +0100, Marc Tamlyn wrote: > Personally, I'm not convinced that it should be part of core Django, > especially as only one of the supported databases covers it. > > There seem to be some implementations about in the wild, though they don't > appear to use the PG specific functionality. > https://github.com/tubaman/django-macaddress > http://djangosnippets.org/snippets/1337/
https://pypi.python.org/pypi/django-netfields is postgres specific and is probably what you are really looking for. It provides CIDR, INET and MAC fields, use netaddr for the python side and also add '__net_contains' type lookups for the PG net related functions. Not sure about how the support is past 1.4, as this delves deep into ORM internals for the extra field lookups. But it is at least being actively maintained now :-) -Thomas -- 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 django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. For more options, visit https://groups.google.com/groups/opt_out.