Skip to content

Commit ff694d6

Browse files
authored
include child addons when force archive (#11557)
1 parent 10e84e3 commit ff694d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

admin/nodes/views.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,9 @@ def post(self, request, *args, **kwargs):
881881

882882
allow_unconfigured = force_archive_params.get('allow_unconfigured', False)
883883

884-
addons = set(registration.registered_from.get_addon_names())
885-
addons.update(DEFAULT_PERMISSIBLE_ADDONS)
884+
addons = set(DEFAULT_PERMISSIBLE_ADDONS)
885+
for reg in registration.node_and_primary_descendants():
886+
addons.update(reg.registered_from.get_addon_names())
886887

887888
try:
888889
verify(registration, permissible_addons=addons, raise_error=True)

0 commit comments

Comments
 (0)