#15231: Admin DateTimeShortcuts + Inlines performance ------------------------------------------------+--------------------------- Reporter: fabianbuechler | Owner: nobody Status: new | Milestone: Component: django.contrib.admin | Version: SVN Resolution: | Keywords: Triage Stage: Accepted | Has patch: 1 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 1 | ------------------------------------------------+--------------------------- Changes (by airstrike):
* needs_better_patch: 0 => 1 Comment: Personally, I couldn't get the admin media prefix to work until I made a small change to the javascript. Maybe there's something wrong with my setup, but now I have: {{{ (function($) { $.fn.datetimeshortcuts = function(options) { // variables set in base.html var datetimeshortcuts_defaults = $('body').data('datetimeshortcuts_defaults'); // extend default settings with user options var o = $.extend({ // admin_media_prefix: $('body').data('admin_media_prefix') admin_media_prefix: window.__admin_media_prefix__ }, // (...) }}} And it finally works for me. In any way, this is an excellent patch and I can see a lot of users benefiting from it right away. Hopefully we can make it to 1.3! -- Ticket URL: <http://code.djangoproject.com/ticket/15231#comment:2> Django <http://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 this group at http://groups.google.com/group/django-updates?hl=en.