Parcourir la source

Quick fix for v1.6.1 related to #561

Jeremy Stretch il y a 8 ans
Parent
commit
325d96dabb
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 2 2
      netbox/extras/models.py
  2. 1 1
      netbox/netbox/settings.py

+ 2 - 2
netbox/extras/models.py

@@ -71,9 +71,9 @@ class CustomFieldModel(object):
         """
         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):
         """

+ 1 - 1
netbox/netbox/settings.py

@@ -12,7 +12,7 @@ except ImportError:
                                "the documentation.")
 
 
-VERSION = '1.6.2-dev'
+VERSION = '1.6.1-r1'
 
 # Import local configuration
 for setting in ['ALLOWED_HOSTS', 'DATABASE', 'SECRET_KEY']: