#19065: The FilteredManyToMany widget needs javascript in 'stacked.html' and 'tabular.html' when using inline content --------------------------------------+-------------------- Reporter: replytosander@… | Owner: nobody Type: Cleanup/optimization | Status: new Component: contrib.admin | Version: 1.4 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+-------------------- I'm developing a custom sortable manytomany widget which allows the user to order the items in the widget.
You can find it here: https://github.com/fabrique/django-sortedm2m When using inline models the widget needs the javascript in stacked.html and/or tabular.html. It initializes a new instance when adding an inline item. To keep the sortedm2m library as pluggable as possible I would like to know how I can provide this javascript in the library. This way a developer doesn't need to override the admin templates. This doesn't seem possible at the moment. Maybe there should be a way to provide document ready javascript in the scope of the widget. Any ideas on this? -- Ticket URL: <https://code.djangoproject.com/ticket/19065> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.