#8893: 1.0 conversion guide doesn't mention url prefix change in attaching .js files to admin views ------------------------------+--------------------------------------------- Reporter: syphoon | Owner: nobody Status: new | Milestone: Component: Documentation | Version: 1.0 Keywords: conversion guide | Stage: Unreviewed Has_patch: 0 | ------------------------------+--------------------------------------------- In 0.96, if you wanted to attach a Javascript file to an admin view, you would do so by adding a "js" property to an inner Admin class on the model class. The corresponding behaviour with the new admin forms is to add an inner Media class to the right Admin object with a "js" property. The former would prefix the .js URL with ADMIN_MEDIA_PREFIX. The latter uses MEDIA_URL. Given we just got bitten by this while doing a 0.96->1.0 conversion it could probably stand to be added to the conversion guide.
-- Ticket URL: <http://code.djangoproject.com/ticket/8893> Django Code <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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
