Skip to content

Commit

Permalink
Add new Dependency model in reporting #138
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Jul 18, 2024
1 parent 72c9c20 commit 341e153
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions product_portfolio/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,7 @@ class ProductDependencyAdmin(ProductRelatedAdminMixin):
"is_direct",
("for_package", RelatedLookupListFilter),
("resolved_to_package", RelatedLookupListFilter),
ReportingQueryListFilter,
)
actions_to_remove = ["copy_to", "compare_with"]

Expand Down
2 changes: 2 additions & 0 deletions reporting/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
from product_portfolio.models import CodebaseResourceUsage
from product_portfolio.models import Product
from product_portfolio.models import ProductComponent
from product_portfolio.models import ProductDependency
from product_portfolio.models import ProductInventoryItem
from product_portfolio.models import ProductItemPurpose
from product_portfolio.models import ProductPackage
Expand Down Expand Up @@ -109,6 +110,7 @@
ProductPackage,
ProductStatus,
ProductRelationStatus,
ProductDependency,
ProductInventoryItem,
ProductItemPurpose,
ExternalReference,
Expand Down
1 change: 1 addition & 0 deletions reporting/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
| 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")
)

Expand Down

0 comments on commit 341e153

Please sign in to comment.