def update_keys(self, request, queryset): """ Admin action: generate new keys for the selected ASes. """ AS.update_cp_as_keys(queryset)
def update_keys(as_ids): from scionlab.models.core import AS ases = AS.objects.filter(as_id__in=as_ids) AS.update_cp_as_keys(ases)