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
Add is_locked field on the Product model #310 (#311)
* Add is_locked field on the Product model #310
Signed-off-by: tdruez <[email protected]>
* Add is_locked indication in the UI #310
Also, remove edit permissions when Product is_locked
Signed-off-by: tdruez <[email protected]>
* Refine the warning message UI and disable actions buttons #310
Signed-off-by: tdruez <[email protected]>
* Move the is_locked field on the ProductStatus model #310
Signed-off-by: tdruez <[email protected]>
* Add unit tests and changelog entry #310
Signed-off-by: tdruez <[email protected]>
---------
Signed-off-by: tdruez <[email protected]>
field=models.BooleanField(db_index=True, default=False, help_text='Marks this product version as read-only, preventing any modifications to its inventory.', verbose_name='Locked inventory'),
19
+
),
20
+
migrations.AlterField(
21
+
model_name='productdependency',
22
+
name='for_package',
23
+
field=models.ForeignKey(blank=True, help_text='The package that declares this dependency.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='declared_dependencies', to='component_catalog.package'),
24
+
),
25
+
migrations.AlterField(
26
+
model_name='productdependency',
27
+
name='resolved_to_package',
28
+
field=models.ForeignKey(blank=True, help_text='The resolved package for this dependency. If empty, it indicates the dependency is unresolved.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='resolved_from_dependencies', to='component_catalog.package'),
0 commit comments