Jelajahi Sumber

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

Jeremy Stretch 8 tahun lalu
induk
melakukan
4bb526896f
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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):