File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -352,10 +352,10 @@ def get_form(self, model):
352
352
try :
353
353
field_name = field .name
354
354
attrs [field_name ] = field_type .get_annotated_form_field (field )
355
-
355
+
356
356
# Annotate the field in the list of CustomField form fields
357
357
attrs ["custom_fields" ][field_name ] = field
358
-
358
+
359
359
# Group fields by group_name (similar to NetBox custom fields)
360
360
group_name = field .group_name or None # Use None for ungrouped fields
361
361
if group_name not in attrs ["custom_field_groups" ]:
@@ -369,9 +369,9 @@ def get_form(self, model):
369
369
def custom_init (self , * args , ** kwargs ):
370
370
super (form_class , self ).__init__ (* args , ** kwargs )
371
371
# Set the grouping info as instance attributes from the outer scope
372
- self .custom_fields = attrs ["custom_fields" ]
372
+ self .custom_fields = attrs ["custom_fields" ]
373
373
self .custom_field_groups = attrs ["custom_field_groups" ]
374
-
374
+
375
375
attrs ["__init__" ] = custom_init
376
376
377
377
form_class = type (
You can’t perform that action at this time.
0 commit comments