-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workshop 1 #1130
Workshop 1 #1130
Conversation
…CA-672-Step-1.1-1.2
…CA-672-Step-1.1-1.2
…tion Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ant-community into CA-672-Step-1.1-1.2
…-ebios-models' into CA-672-Step-1.1-1.2
backend/core/serializers.py
Outdated
ebios_rm_studies = serializers.SlugRelatedField( | ||
many=True, | ||
slug_field="id", | ||
queryset=EbiosRMStudy.objects.all(), | ||
required=False, | ||
allow_null=True, | ||
write_only=True, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EBIOS RM stuff leaking on core
should be avoided unless absolutely necessary. Since this field would only be needed in EBIOS RM contexts, what about having a serializer inheriting from this one in the ebios_rm
app, with the additional field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, let's take this shortcut.
c5360f7
to
8fd77a9
Compare
This allows to parse the value of a select option if it is a number
8fd77a9
to
4db984a
Compare
…community into CA-674-Step-1.4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
backend/core/serializers.py
Outdated
ebios_rm_studies = serializers.SlugRelatedField( | ||
many=True, | ||
slug_field="id", | ||
queryset=EbiosRMStudy.objects.all(), | ||
required=False, | ||
allow_null=True, | ||
write_only=True, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, let's take this shortcut.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This route should be called baseline
instead of base
to reflect the naming used by the ANSSI
No description provided.