Skip to content

Commit

Permalink
Properly display stakeholders choices in AttackPathForm
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Dec 9, 2024
1 parent d8468a0 commit ce6e1a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/ebios_rm/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Meta:


class StakeholderReadSerializer(BaseModelSerializer):
name = serializers.CharField(source="__str__")
str = serializers.CharField(source="__str__")
ebios_rm_study = FieldsRelatedField()
folder = FieldsRelatedField()
entity = FieldsRelatedField()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
{form}
multiple
options={getOptions({
objects: model.foreignKeys['stakeholders']
objects: model.foreignKeys['stakeholders'],
label: 'str'
})}
field="stakeholders"
cacheLock={cacheLocks['stakeholders']}
Expand Down

0 comments on commit ce6e1a2

Please sign in to comment.