From 325d96dabb050ac6edb937cb7210598fff83a265 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 21 Sep 2016 11:43:22 -0400 Subject: [PATCH] Quick fix for v1.6.1 related to #561 --- netbox/extras/models.py | 4 ++-- netbox/netbox/settings.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/netbox/extras/models.py b/netbox/extras/models.py index 4bc9f35500a..64e84ef66aa 100644 --- a/netbox/extras/models.py +++ b/netbox/extras/models.py @@ -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): """ diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index ef25ae84f31..a7de9c47c47 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -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']: