Skip to content

Commit

Permalink
chore: run format
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Sep 13, 2024
1 parent 03a1581 commit 789bf86
Show file tree
Hide file tree
Showing 15 changed files with 467 additions and 194 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@


class Migration(migrations.Migration):

dependencies = [
('core', '0026_appliedcontrol_cost'),
("core", "0026_appliedcontrol_cost"),
]

operations = [
migrations.AddField(
model_name='requirementassessment',
name='answer',
field=models.JSONField(blank=True, null=True, verbose_name='Answer'),
model_name="requirementassessment",
name="answer",
field=models.JSONField(blank=True, null=True, verbose_name="Answer"),
),
migrations.AddField(
model_name='requirementnode',
name='question',
field=models.JSONField(blank=True, null=True, verbose_name='Question'),
model_name="requirementnode",
name="question",
field=models.JSONField(blank=True, null=True, verbose_name="Question"),
),
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@


class Migration(migrations.Migration):

dependencies = [
('core', '0027_requirementassessment_answer_and_more'),
("core", "0027_requirementassessment_answer_and_more"),
]

operations = [
migrations.AddField(
model_name='complianceassessment',
name='observation',
field=models.TextField(blank=True, null=True, verbose_name='Observation'),
model_name="complianceassessment",
name="observation",
field=models.TextField(blank=True, null=True, verbose_name="Observation"),
),
migrations.AddField(
model_name='riskassessment',
name='observation',
field=models.TextField(blank=True, null=True, verbose_name='Observation'),
model_name="riskassessment",
name="observation",
field=models.TextField(blank=True, null=True, verbose_name="Observation"),
),
]
13 changes: 8 additions & 5 deletions backend/iam/migrations/0007_alter_folder_content_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@


class Migration(migrations.Migration):

dependencies = [
('iam', '0006_alter_role_folder_alter_roleassignment_folder_and_more'),
("iam", "0006_alter_role_folder_alter_roleassignment_folder_and_more"),
]

operations = [
migrations.AlterField(
model_name='folder',
name='content_type',
field=models.CharField(choices=[('GL', 'GLOBAL'), ('DO', 'DOMAIN'), ('EN', 'ENCLAVE')], default='DO', max_length=2),
model_name="folder",
name="content_type",
field=models.CharField(
choices=[("GL", "GLOBAL"), ("DO", "DOMAIN"), ("EN", "ENCLAVE")],
default="DO",
max_length=2,
),
),
]
7 changes: 3 additions & 4 deletions backend/iam/migrations/0008_user_is_third_party.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@


class Migration(migrations.Migration):

dependencies = [
('iam', '0007_alter_folder_content_type'),
("iam", "0007_alter_folder_content_type"),
]

operations = [
migrations.AddField(
model_name='user',
name='is_third_party',
model_name="user",
name="is_third_party",
field=models.BooleanField(default=False),
),
]
2 changes: 1 addition & 1 deletion backend/iam/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def get_short_name(self) -> str:
"""get user's short name (i.e. first_name or email before @))"""
return self.first_name if self.first_name else self.email.split("@")[0]

def mailing(self, email_template_name, subject, object='', object_id='', pk=False):
def mailing(self, email_template_name, subject, object="", object_id="", pk=False):
"""
Sending a mail to a user for password resetting or creation
"""
Expand Down
Loading

0 comments on commit 789bf86

Please sign in to comment.