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.
1 parent ccd5996 commit 7c56151Copy full SHA for 7c56151
netbox_custom_objects/models.py
@@ -492,7 +492,6 @@ def register_custom_object_search_index(self, model):
492
493
def get_model(
494
self,
495
- fields=None,
496
skip_object_fields=False,
497
no_cache=False,
498
_generating_models=None,
@@ -534,9 +533,6 @@ def get_model(
534
533
535
model_name = self.get_table_model_name(self.pk)
536
537
- if fields is None:
538
- fields = []
539
-
540
# TODO: Add other fields with "index" specified
541
indexes = []
542
@@ -563,6 +559,7 @@ def get_model(
563
559
}
564
560
565
561
# Pass the generating models set to field generation
562
+ fields = []
566
field_attrs = self._fetch_and_generate_field_attrs(
567
fields,
568
skip_object_fields=skip_object_fields,
0 commit comments