Skip to content

Commit 7c56151

Browse files
committed
remove fields
1 parent ccd5996 commit 7c56151

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

netbox_custom_objects/models.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,6 @@ def register_custom_object_search_index(self, model):
492492

493493
def get_model(
494494
self,
495-
fields=None,
496495
skip_object_fields=False,
497496
no_cache=False,
498497
_generating_models=None,
@@ -534,9 +533,6 @@ def get_model(
534533

535534
model_name = self.get_table_model_name(self.pk)
536535

537-
if fields is None:
538-
fields = []
539-
540536
# TODO: Add other fields with "index" specified
541537
indexes = []
542538

@@ -563,6 +559,7 @@ def get_model(
563559
}
564560

565561
# Pass the generating models set to field generation
562+
fields = []
566563
field_attrs = self._fetch_and_generate_field_attrs(
567564
fields,
568565
skip_object_fields=skip_object_fields,

0 commit comments

Comments
 (0)