Parcourir la source

Fixes #1934: Fixed exception when rendering export template on an object type with custom fields assigned

Jeremy Stretch il y a 7 ans
Parent
commit
4bb526896f
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      netbox/utilities/views.py

+ 1 - 0
netbox/utilities/views.py

@@ -35,6 +35,7 @@ class CustomFieldQueryset:
 
     def __init__(self, queryset, custom_fields):
         self.queryset = queryset
+        self.model = queryset.model
         self.custom_fields = custom_fields
 
     def __iter__(self):