We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b3692a + 0cda38d commit a3b69c4Copy full SHA for a3b69c4
netbox_custom_objects/api/views.py
@@ -50,7 +50,7 @@ def get_queryset(self):
50
)
51
except CustomObjectType.DoesNotExist:
52
raise Http404
53
- self.model = custom_object_type.get_model()
+ self.model = custom_object_type.get_model_with_serializer()
54
return self.model.objects.all()
55
56
@property
netbox_custom_objects/models.py
@@ -439,6 +439,8 @@ def get_model(
439
440
:param skip_object_fields: Don't add object or multiobject fields to the model
441
:type skip_object_fields: bool
442
+ :param no_cache: Force regeneration of the model, bypassing cache
443
+ :type no_cache: bool
444
:return: The generated model.
445
:rtype: Model
446
"""
0 commit comments