You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -25,13 +24,13 @@ class Migration(migrations.Migration):
25
24
('last_checked', models.DateTimeField(auto_now=True, help_text='The date and time of the last evaluation.')),
26
25
('resolved', models.BooleanField(default=False, help_text='Indicates whether this violation has been resolved.')),
27
26
('resolved_date', models.DateTimeField(blank=True, help_text='The date and time when this violation was resolved.', null=True)),
27
+
('rule_type', models.CharField(help_text='The rule type from the rule registry that triggered this violation.', max_length=50)),
28
28
('dataspace', models.ForeignKey(editable=False, help_text='A Dataspace is an independent, exclusive set of DejaCode data, which can be either nexB master reference data or installation-specific data.', on_delete=django.db.models.deletion.PROTECT, to='dje.dataspace')),
29
-
('policy_rule', models.ForeignKey(help_text='The policy rule that triggered this violation.', on_delete=django.db.models.deletion.CASCADE, related_name='product_violations', to='policy.policyrule')),
30
29
('product', models.ForeignKey(help_text='The product in the context of which this violation was detected.', on_delete=django.db.models.deletion.CASCADE, related_name='policy_violations', to='product_portfolio.product')),
0 commit comments