About Administration Form Views
You can pass form values to administration views to prepopulate them.
For example, here is an admin action that redirects to announcement creation page:
@admin.action(description=_("Send announcement"))
def send_announcement(modeladmin, request, queryset):
recipients = list(queryset.values_list("pk", flat=True))
return redirect(
reverse("admin:announcements_announcement_add")
+ f"?recipients={','.join(recipients)}"
)
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You