![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
django-admin-wizard is a Django app providing helpers for django admin actions with intermediate forms.
Do you know "delete selected" action in Django-admin? This package provides helpers for creating such actions with intermediate forms in two lines of code. Also, you may add a link from django admin change page to a custom form view to perform some form-supplied action on single object.
pip install django-admin-wizard
Working example is in testproject.testapp
.
INSTALLED_APPS.append('admin_wizard')
from django.contrib import admin
from admin_wizard.admin import UpdateAction
from testproject.testapp import forms, models
@admin.register(models.MyModel)
class MyModelAdmin(admin.ModelAdmin):
actions = [UpdateAction(form_class=forms.RenameForm)]
from django.contrib import admin
from django.urls import path
from admin_wizard.admin import UpdateDialog
from testproject.testapp import forms, models
@admin.register(models.MyModel)
class MyModelAdmin(admin.ModelAdmin):
def get_urls(self):
urls = [
path('<int:pk>/rename/',
UpdateDialog.as_view(model_admin=self,
model=models.MyModel,
form_class=forms.RenameForm),
name='rename')
]
return urls + super().get_urls()
from django.contrib import admin
from django.urls import reverse
from testproject.testapp import models
@admin.register(models.MyModel)
class MyModelAdmin(admin.ModelAdmin):
readonly_fields = ('update_obj_url',)
def update_obj_url(self, obj):
# FIXME: it's XSS, don't copy-paste
url = reverse('admin:rename', kwargs=dict(pk=obj.pk))
return f'<a href="{url}">Rename...</a>'
update_obj_url.short_description = 'rename'
Now you have "rename" action in changelist and "rename" link in change view. Enjoy :)
FAQs
Django Admin dialogs and actions with intermediate forms
We found that django-admin-wizard 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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.