
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
django-admin-actions
Advanced tools
Display Django admin custom actions in change list, change form or per row in change list.
django-admin-actions provides simple way how to define custom actions for Django admin changelist, changeview and per row in changelist.
pip install django-admin-actions
pip install git+https://git@github.com/lukasvinclav/django-admin-actions.git
from django.contrib import admin
from django.shortcuts import redirect
from django.urls import reverse_lazy
from django.utils.translations import ugettext_lazy as _
from admin_actions.admin import ActionsModelAdmin
from .models import ExampleModel
@admin.register(ExampleModel)
class CustomAdmin(ActionsModelAdmin):
actions_list = ('custom_list_action', )
actions_row = ('custom_row_action', )
actions_detail = ('custom_detail_action', )
def custom_list_action(self, request):
# custom logic here
return redirect(reverse_lazy('admin:APP_MODEL_changelist'))
custom_list_action.short_description = _('Custom name')
custom_list_action.url_path = 'clean-url-path-1'
def custom_row_action(self, request, pk):
# custom logic here
return redirect(reverse_lazy('admin:APP_MODEL_changelist'))
custom_row_action.short_description = _('Row custom name')
custom_row_action.url_path = 'clean-url-path-2'
def custom_detail_action(self, request, pk):
# custom logic here
return redirect(reverse_lazy('admin:APP_MODEL_changelist'))
custom_detail_action.short_description = _('Detail custom name')
custom_detail_action.url_path = 'clean-url-path-3'
FAQs
Display Django admin custom actions in change list, change form or per row in change list.
We found that django-admin-actions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.