Skip to content

Commit

Permalink
Quick fix for v1.6.1 related to netbox-community#561
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Sep 21, 2016
1 parent e9ce97b commit 73d102d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions netbox/extras/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def cf(self):
"""
Name-based CustomFieldValue accessor for use in templates
"""
if not hasattr(self, 'custom_fields'):
if not hasattr(self, 'get_custom_fields'):
return dict()
return {field.name: value for field, value in self.custom_fields.items()}
return {field.name: value for field, value in self.get_custom_fields().items()}

def get_custom_fields(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion netbox/netbox/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"the documentation.")


VERSION = '1.6.2-dev'
VERSION = '1.6.1-r1'

# Import local configuration
for setting in ['ALLOWED_HOSTS', 'DATABASE', 'SECRET_KEY']:
Expand Down

0 comments on commit 73d102d

Please sign in to comment.