django-postgresql-netfields
django-postgresql-netfields copied to clipboard
Proper INET and CIDR fields for Django running on PostgreSQL
In some cases, `netaddr.EUI()` can throw `IndexError` and `TypeError` in addition to `netaddr.AddrFormatError`. This was handled correctly in `MACAddressFormField`, but was missing in some other places.
`` RemovedInDjango41Warning: 'netfields' defines default_app_config = 'netfields.apps.NetfieldsConfig'. Django now detects this configuration automatically. You can remove default_app_config. `` See https://code.djangoproject.com/ticket/31180 Since django 3.2 the warning is shown: https://github.com/django/django/commit/3f2821af6bc48fa8e7970c1ce27bc54c3172545e
Added the option to specify a specific protocol for fields like in the `GenericIPAddressField`.
Hello, could you please help me identify what's the problem with my setup? I'm running Django version 3.2.9 with the models presented below. Been able to insert Addresses to Postgresql...
Hello, On a Django 3.1.7 setup, I've got a models like this: `class LANManager(models.Manager): def get_by_natural_key(self, slug_name): return self.get(slug_name=slug_name) class LAN(models.Model): slug_name = models.SlugField(max_length=64, unique=True) network_address = CidrAddressField() net_objects =...
When combining a field from this library with `ArrayField` if any of the values in the array is None (or should be translated to `NULL`) an invalid query is generated...
Postgres 'macaddr' field only accepts EUI-48 addresses, restrict MACAddressField to the same. Also fix conversion from EUI-48 to EUI-64/MACAddress8Field
cheers