From d974cecda38ff9d614b168b0c211e44ed5babd21 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 5 Jul 2016 18:15:24 -0400 Subject: [PATCH] Fixes #199: Moved prefix_validator from BaseIPField to IPNetworkField --- netbox/ipam/fields.py | 2 +- netbox/netbox/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/ipam/fields.py b/netbox/ipam/fields.py index 098f753c90f..00aeb514bac 100644 --- a/netbox/ipam/fields.py +++ b/netbox/ipam/fields.py @@ -16,7 +16,6 @@ def prefix_validator(prefix): class BaseIPField(models.Field): - default_validators = [prefix_validator] def python_type(self): return IPNetwork @@ -51,6 +50,7 @@ class IPNetworkField(BaseIPField): IP prefix (network and mask) """ description = "PostgreSQL CIDR field" + default_validators = [prefix_validator] def db_type(self, connection): return 'cidr' diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 7e4a2237817..e9928b850c7 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -11,7 +11,7 @@ "the documentation.") -VERSION = '1.0.7' +VERSION = '1.0.7-r1' # Import local configuration for setting in ['ALLOWED_HOSTS', 'DATABASE', 'SECRET_KEY']: