wbcompliance 1.59.9__py2.py3-none-any.whl → 1.59.10__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wbcompliance/migrations/0023_alter_checkedobjectincidentrelationship_unique_together_and_more.py +40 -0
- wbcompliance/models/risk_management/incidents.py +1 -1
- wbcompliance/models/risk_management/rules.py +7 -2
- {wbcompliance-1.59.9.dist-info → wbcompliance-1.59.10.dist-info}/METADATA +1 -1
- {wbcompliance-1.59.9.dist-info → wbcompliance-1.59.10.dist-info}/RECORD +6 -5
- {wbcompliance-1.59.9.dist-info → wbcompliance-1.59.10.dist-info}/WHEEL +0 -0
wbcompliance/migrations/0023_alter_checkedobjectincidentrelationship_unique_together_and_more.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Generated by Django 5.2.9 on 2025-12-16 15:26
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('auth', '0012_alter_user_first_name_max_length'),
|
|
10
|
+
('contenttypes', '0002_remove_content_type_name'),
|
|
11
|
+
('directory', '0014_alter_entry_relationship_managers_and_more'),
|
|
12
|
+
('wbcompliance', '0022_riskincident_precheck'),
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
operations = [
|
|
16
|
+
migrations.AlterUniqueTogether(
|
|
17
|
+
name='checkedobjectincidentrelationship',
|
|
18
|
+
unique_together=set(),
|
|
19
|
+
),
|
|
20
|
+
migrations.AlterUniqueTogether(
|
|
21
|
+
name='rulecheckedobjectrelationship',
|
|
22
|
+
unique_together=set(),
|
|
23
|
+
),
|
|
24
|
+
migrations.AlterUniqueTogether(
|
|
25
|
+
name='rulethreshold',
|
|
26
|
+
unique_together=set(),
|
|
27
|
+
),
|
|
28
|
+
migrations.AddConstraint(
|
|
29
|
+
model_name='checkedobjectincidentrelationship',
|
|
30
|
+
constraint=models.UniqueConstraint(fields=('incident', 'rule_check'), name='unique_incident'),
|
|
31
|
+
),
|
|
32
|
+
migrations.AddConstraint(
|
|
33
|
+
model_name='rulecheckedobjectrelationship',
|
|
34
|
+
constraint=models.UniqueConstraint(fields=('rule', 'checked_object_content_type', 'checked_object_id'), name='unique_checkedobjectrulerelationship'),
|
|
35
|
+
),
|
|
36
|
+
migrations.AddConstraint(
|
|
37
|
+
model_name='rulethreshold',
|
|
38
|
+
constraint=models.UniqueConstraint(fields=('rule', 'severity'), name='unique_rule'),
|
|
39
|
+
),
|
|
40
|
+
]
|
|
@@ -222,7 +222,7 @@ class CheckedObjectIncidentRelationship(ComplexToStringMixin, RiskIncidentMixin)
|
|
|
222
222
|
class Meta:
|
|
223
223
|
verbose_name = "Incident to Checked Object relationship"
|
|
224
224
|
verbose_name_plural = "Incident to Checked Object relationships"
|
|
225
|
-
|
|
225
|
+
constraints = (models.UniqueConstraint(name="unique_incident", fields=("incident", "rule_check")),)
|
|
226
226
|
indexes = [
|
|
227
227
|
models.Index(fields=["incident", "rule_check"]),
|
|
228
228
|
]
|
|
@@ -80,7 +80,12 @@ class RuleCheckedObjectRelationship(ComplexToStringMixin):
|
|
|
80
80
|
indexes = [
|
|
81
81
|
models.Index(fields=["rule", "checked_object_content_type", "checked_object_id"]),
|
|
82
82
|
]
|
|
83
|
-
|
|
83
|
+
constraints = (
|
|
84
|
+
models.UniqueConstraint(
|
|
85
|
+
name="unique_checkedobjectrulerelationship",
|
|
86
|
+
fields=("rule", "checked_object_content_type", "checked_object_id"),
|
|
87
|
+
),
|
|
88
|
+
)
|
|
84
89
|
|
|
85
90
|
@property
|
|
86
91
|
def checks(self) -> "models.QuerySet[RiskCheck]":
|
|
@@ -367,7 +372,7 @@ class RuleThreshold(ComplexToStringMixin):
|
|
|
367
372
|
return User.objects.none()
|
|
368
373
|
|
|
369
374
|
class Meta:
|
|
370
|
-
|
|
375
|
+
constraints = (models.UniqueConstraint(name="unique_rule", fields=("rule", "severity")),)
|
|
371
376
|
|
|
372
377
|
@classmethod
|
|
373
378
|
def get_representation_endpoint(cls) -> str:
|
|
@@ -48,6 +48,7 @@ wbcompliance/migrations/0019_rulegroup_riskrule_activation_date_and_more.py,sha2
|
|
|
48
48
|
wbcompliance/migrations/0020_rename_trigger_content_type_riskcheck_checked_object_content_type_and_more.py,sha256=XZVSSrk-71tSp9_VO6M0S9jaFJy5azyJEMYvO7e_Ut8,3135
|
|
49
49
|
wbcompliance/migrations/0021_riskcheck_passive_check.py,sha256=8P0ELPz-_UmnBOY_AyjkAtRJyXD9AOqYUhUB_9FW27Y,836
|
|
50
50
|
wbcompliance/migrations/0022_riskincident_precheck.py,sha256=H2l9REAsogn7EsUMWcE_A7ldZ6QUZ9UnfhhJpioyyhk,1756
|
|
51
|
+
wbcompliance/migrations/0023_alter_checkedobjectincidentrelationship_unique_together_and_more.py,sha256=dSgzBAWvIs1tsegPgpr0GtBXEVKsHgtX5djuihQg93w,1486
|
|
51
52
|
wbcompliance/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
52
53
|
wbcompliance/models/__init__.py,sha256=gk3D0yZ3ZpJh1Nl-Kyc1PWm67t0Gj7t47Jl2xm9Lisk,534
|
|
53
54
|
wbcompliance/models/compliance_form.py,sha256=6xWJ5cEt0mfNsZjLYXI8GcP1Jb4MsFsvPhtVITmE0yI,24879
|
|
@@ -58,9 +59,9 @@ wbcompliance/models/risk_management/__init__.py,sha256=DJXoHheA5REDpPYP0uyRmFWyN
|
|
|
58
59
|
wbcompliance/models/risk_management/backend.py,sha256=pbszChXMxA36JjK0nIkrz0k7w9ImKUTGMVlokgA1R-w,4736
|
|
59
60
|
wbcompliance/models/risk_management/checks.py,sha256=8puXRaVzmerF1tkWHi1MIxNewe-Io0Ux0iU7EleYOdY,12206
|
|
60
61
|
wbcompliance/models/risk_management/dispatch.py,sha256=cLi63vSGbk9xhCoVgr4UmVk2kfYmGiyohKINSvCodb0,1423
|
|
61
|
-
wbcompliance/models/risk_management/incidents.py,sha256=
|
|
62
|
+
wbcompliance/models/risk_management/incidents.py,sha256=9BJP6N2Qbpach7ObymZ1Pz5ih0cLqrzXI9fLfYGb-d4,24382
|
|
62
63
|
wbcompliance/models/risk_management/mixins.py,sha256=KsdjpM1Cl235z8h57USVcYSBKtO2VRH1S0FCuJOEMH0,3762
|
|
63
|
-
wbcompliance/models/risk_management/rules.py,sha256=
|
|
64
|
+
wbcompliance/models/risk_management/rules.py,sha256=26zanw7maoi-ODJoDj2FLu8PCN5i2dI9J6RU5QsJ9uU,25917
|
|
64
65
|
wbcompliance/serializers/__init__.py,sha256=OhRIuUrexqQePCISpu-BKry9dfioYGfpO8RwlcwhHtI,1122
|
|
65
66
|
wbcompliance/serializers/compliance_form.py,sha256=OxPILlup_CP4Qwvu864oMqz7QUZsk2QOkOGFifWP3gM,11615
|
|
66
67
|
wbcompliance/serializers/compliance_task.py,sha256=euTQya2LdexoRblew9zMkv40kU7wkW9nU2uLTI-lwow,17035
|
|
@@ -138,6 +139,6 @@ wbcompliance/viewsets/titles/risk_managment/checks.py,sha256=47DEQpj8HBSa-_TImW-
|
|
|
138
139
|
wbcompliance/viewsets/titles/risk_managment/incidents.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
139
140
|
wbcompliance/viewsets/titles/risk_managment/rules.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
140
141
|
wbcompliance/viewsets/titles/risk_managment/tables.py,sha256=x_9mr6JWZ9GVNAEvfdNCeFZtGGYSG0-sXrR9pwTyocU,256
|
|
141
|
-
wbcompliance-1.59.
|
|
142
|
-
wbcompliance-1.59.
|
|
143
|
-
wbcompliance-1.59.
|
|
142
|
+
wbcompliance-1.59.10.dist-info/METADATA,sha256=B_5PD55ty_ElxIhb9ir8ZyzH4M-Rw--BFO3tJmo9qCc,197
|
|
143
|
+
wbcompliance-1.59.10.dist-info/WHEEL,sha256=aha0VrrYvgDJ3Xxl3db_g_MDIW-ZexDdrc_m-Hk8YY4,105
|
|
144
|
+
wbcompliance-1.59.10.dist-info/RECORD,,
|
|
File without changes
|