mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
Quick fix for v1.6.1 related to #561
This commit is contained in:
parent
b7b1682f42
commit
325d96dabb
@ -71,9 +71,9 @@ class CustomFieldModel(object):
|
|||||||
"""
|
"""
|
||||||
Name-based CustomFieldValue accessor for use in templates
|
Name-based CustomFieldValue accessor for use in templates
|
||||||
"""
|
"""
|
||||||
if not hasattr(self, 'custom_fields'):
|
if not hasattr(self, 'get_custom_fields'):
|
||||||
return dict()
|
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):
|
def get_custom_fields(self):
|
||||||
"""
|
"""
|
||||||
|
@ -12,7 +12,7 @@ except ImportError:
|
|||||||
"the documentation.")
|
"the documentation.")
|
||||||
|
|
||||||
|
|
||||||
VERSION = '1.6.2-dev'
|
VERSION = '1.6.1-r1'
|
||||||
|
|
||||||
# Import local configuration
|
# Import local configuration
|
||||||
for setting in ['ALLOWED_HOSTS', 'DATABASE', 'SECRET_KEY']:
|
for setting in ['ALLOWED_HOSTS', 'DATABASE', 'SECRET_KEY']:
|
||||||
|
Loading…
Reference in New Issue
Block a user