Skip to content

Commit

Permalink
Merge branch 'main' into CA-702-workshop-2-UX
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Dec 13, 2024
2 parents e83bce1 + 366e5e1 commit 09a294f
Show file tree
Hide file tree
Showing 45 changed files with 1,411 additions and 432 deletions.
Binary file modified backend/core/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
670 changes: 416 additions & 254 deletions backend/core/locale/fr/LC_MESSAGES/django.po

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion backend/core/management/commands/reset_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from core.models import *
from iam.models import User, Folder
from ciso_assistant.settings import CISO_ASSISTANT_SUPERUSER_EMAIL
from django.utils.translation import gettext_lazy as _


class Command(BaseCommand):
Expand All @@ -13,7 +14,7 @@ def handle(self, *args, **kwargs):
try:
admin.mailing(
email_template_name="registration/password_reset_email.html",
subject="CISO Assistant: Password Reset",
subject=_("CISO Assistant: Password Reset"),
)
self.stdout.write("reset mail sent")
except Exception as e:
Expand Down
8 changes: 8 additions & 0 deletions backend/core/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ class Meta:


class AssetWriteSerializer(BaseModelSerializer):
ebios_rm_studies = serializers.PrimaryKeyRelatedField(
many=True,
queryset=EbiosRMStudy.objects.all(),
required=False,
allow_null=True,
write_only=True,
)

class Meta:
model = Asset
fields = "__all__"
Expand Down
Binary file modified backend/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit 09a294f

Please sign in to comment.