-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add declared_dependency field on ProductDependency model #138
Signed-off-by: tdruez <[email protected]>
- Loading branch information
Showing
10 changed files
with
68 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
product_portfolio/migrations/0007_productdependency_declared_dependency.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 5.0.6 on 2024-08-02 08:11 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('product_portfolio', '0006_productdependency'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='productdependency', | ||
name='declared_dependency', | ||
field=models.CharField(blank=True, help_text='A dependency as stated in a project manifest or lockfile, which may be required or optional, and may be associated with specific version ranges.', max_length=1024), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
reporting/migrations/0002_alter_columntemplate_content_type_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 5.0.6 on 2024-08-02 08:11 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('contenttypes', '0002_remove_content_type_name'), | ||
('reporting', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='columntemplate', | ||
name='content_type', | ||
field=models.ForeignKey(help_text='Choose the primary data source for your column template: licenses, components, or owners.', limit_choices_to=models.Q(models.Q(('app_label', 'license_library'), ('model', 'license')), models.Q(('app_label', 'component_catalog'), ('model', 'component')), models.Q(('app_label', 'component_catalog'), ('model', 'subcomponent')), models.Q(('app_label', 'component_catalog'), ('model', 'package')), models.Q(('app_label', 'organization'), ('model', 'owner')), models.Q(('app_label', 'workflow'), ('model', 'request')), models.Q(('app_label', 'license_library'), ('model', 'licensetag')), models.Q(('app_label', 'license_library'), ('model', 'licenseprofile')), models.Q(('app_label', 'license_library'), ('model', 'licensechoice')), models.Q(('app_label', 'product_portfolio'), ('model', 'product')), models.Q(('app_label', 'product_portfolio'), ('model', 'productcomponent')), models.Q(('app_label', 'product_portfolio'), ('model', 'productpackage')), models.Q(('app_label', 'product_portfolio'), ('model', 'productinventoryitem')), models.Q(('app_label', 'product_portfolio'), ('model', 'productdependency')), models.Q(('app_label', 'product_portfolio'), ('model', 'codebaseresource')), _connector='OR'), on_delete=django.db.models.deletion.PROTECT, to='contenttypes.contenttype', verbose_name='object type'), | ||
), | ||
migrations.AlterField( | ||
model_name='query', | ||
name='content_type', | ||
field=models.ForeignKey(help_text='Choose the primary data source for your query: licenses, components, or owners.', limit_choices_to=models.Q(models.Q(('app_label', 'license_library'), ('model', 'license')), models.Q(('app_label', 'component_catalog'), ('model', 'component')), models.Q(('app_label', 'component_catalog'), ('model', 'subcomponent')), models.Q(('app_label', 'component_catalog'), ('model', 'package')), models.Q(('app_label', 'organization'), ('model', 'owner')), models.Q(('app_label', 'workflow'), ('model', 'request')), models.Q(('app_label', 'license_library'), ('model', 'licensetag')), models.Q(('app_label', 'license_library'), ('model', 'licenseprofile')), models.Q(('app_label', 'license_library'), ('model', 'licensechoice')), models.Q(('app_label', 'product_portfolio'), ('model', 'product')), models.Q(('app_label', 'product_portfolio'), ('model', 'productcomponent')), models.Q(('app_label', 'product_portfolio'), ('model', 'productpackage')), models.Q(('app_label', 'product_portfolio'), ('model', 'productinventoryitem')), models.Q(('app_label', 'product_portfolio'), ('model', 'productdependency')), models.Q(('app_label', 'product_portfolio'), ('model', 'codebaseresource')), _connector='OR'), on_delete=django.db.models.deletion.PROTECT, to='contenttypes.contenttype', verbose_name='object type'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters