Opened 12 years ago
Closed 12 years ago
#20037 closed Bug (invalid)
Django-admin inlines javascript tabularFormset -> formset
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.admin | Version: | 1.5 |
Severity: | Normal | Keywords: | JS, tabularFormset, formset |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | yes |
Description
Django-admin , if inlines are used, produce an inline script for each inline item,
like the one below;
But the function '$.tabularFormset()' is no more defined anywhere.
It's now known as '$.formset()'
So django-admin view should be updated to use '$.formset()' instead of '$.tabularFormset'
<script type="text/javascript">
(function($) {
$("#proxyresource_set-group .tabular.inline-related tbody tr").tabularFormset({
prefix: "proxyresource_set",
adminStaticPrefix: '/static/admin/',
addText: "Add another item",
deleteText: "Elimina"
});
})(django.jQuery);
</script>
Change History (3)
comment:1 by , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 12 years ago
Resolution: | invalid |
---|---|
Status: | closed → new |
comment:3 by , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
My bad. I had the olds (1.4) inline.min.js and inline.js in my staticdirs so the new ones don't got collected.