Skip to content

Commit

Permalink
Fixes #199: Moved prefix_validator from BaseIPField to IPNetworkField
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jul 5, 2016
1 parent 7f353e8 commit d974cec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netbox/ipam/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def prefix_validator(prefix):


class BaseIPField(models.Field):
default_validators = [prefix_validator]

def python_type(self):
return IPNetwork
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion netbox/netbox/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down

0 comments on commit d974cec

Please sign in to comment.