#12793 closed (fixed)
jQuery error if action=None in Modeladmin
| Reported by: | Florian Apolloner | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.admin | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Jannis Leidel | Triage Stage: | Unreviewed |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
!jQuery only get's included if admin actions aren't None, but there is still some javascript injected into the page which tries to use !jQuery:
<script type="text/javascript">
(function($) {
$(document).ready(function($) {
$("tr input.action-select").actions();
});
})(jQuery.noConflict());
</script>
Note:
See TracTickets
for help on using tickets.
(In [12396]) Fixed #12793 - Only use the admin actions JavaScript if not explicitly deactivated with 'actions = None' in the ModelAdmin. Thanks, Florian Apolloner.