File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
netbox/netbox/views/generic Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -559,6 +559,7 @@ def post(self, request):
559559 form .instance ._replicated_base = hasattr (self .form , "replication_fields" )
560560
561561 if form .is_valid ():
562+ changelog_message = form .cleaned_data .pop ('changelog_message' , '' )
562563 new_components = []
563564 data = deepcopy (request .POST )
564565 pattern_count = len (form .cleaned_data [self .form .replication_fields [0 ]])
@@ -585,6 +586,9 @@ def post(self, request):
585586 # Create the new components
586587 new_objs = []
587588 for component_form in new_components :
589+ # Record changelog message (if any)
590+ if changelog_message :
591+ component_form .instance ._changelog_message = changelog_message
588592 obj = component_form .save ()
589593 new_objs .append (obj )
590594
You can’t perform that action at this time.
0 commit comments