On Dec 16, 6:48 pm, "3lancer.eu" <kilc...@gmail.com> wrote: > Hi, > > As I read > onhttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-me..., > the files defined in Media classes' js and css attributes will only be > added to html on the add/change page. So as far as I understand, it's > only possible to add some js to the change list page for given model > via extending the template? Is there any real reason for that? Is this > expected to be changed in upcoming releases? > > Regards, > Piotr
Media classes are part of the form framework. The changelist page is not a form, so it doesn't get the media class. I don't think this is likely to change. In any case, I'd say that the media requirements for forms are different from changelists anyway. As you say, you can easily extend the template - as you may know, you don't need to override the whole thing, you can just have {% block extrahead %} to define the extra media you need. -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---