Browse Source

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

Jeremy Stretch 7 years ago
parent
commit
4bb526896f
1 changed files with 1 additions and 0 deletions
  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):