Skip to content

Commit

Permalink
use locale language for created applied control
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-intuitem committed Dec 15, 2024
1 parent ecb2246 commit d530d61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3254,7 +3254,9 @@ def create_applied_controls_from_suggestions(self) -> list[AppliedControl]:
applied_controls: list[AppliedControl] = []
for reference_control in self.requirement.reference_controls.all():
try:
_name = reference_control.name or reference_control.ref_id
_name = (
reference_control.get_name_translated or reference_control.ref_id
)
applied_control, created = AppliedControl.objects.get_or_create(
name=_name,
folder=self.folder,
Expand Down

0 comments on commit d530d61

Please sign in to comment.