JavaScript customizations in the admin
- is the newly added (or removed) row.
The event is fired using the django.jQuery namespace.
app/static/app/formset_handlers.js
- The JavaScript code must go in a template block if you are inheriting or it won’t be rendered in the final HTML.
Sometimes you’ll need to work with jQuery
plugins that are not registered in the namespace. To do that, change how the code listens for events. Instead of wrapping the listener in the django.jQuery
namespace, listen to the event triggered from there. For example: