Fixes #8192: Add "add prefix" button to aggregate child prefixes view

This commit is contained in:
jeremystretch
2021-12-30 12:00:37 -05:00
parent 68f92dfd5d
commit 2fa8e27f05
4 changed files with 34 additions and 21 deletions

View File

@@ -299,6 +299,7 @@ class AggregatePrefixesView(generic.ObjectChildrenView):
return {
'bulk_querystring': f'within={instance.prefix}',
'active_tab': 'prefixes',
'first_available_prefix': instance.get_first_available_prefix(),
'show_available': bool(request.GET.get('show_available', 'true') == 'true'),
'show_assigned': bool(request.GET.get('show_assigned', 'true') == 'true'),
}