Hi all,

Newforms media, again. A few small updates this time; the patch is
against newforms-admin.

Adrian - are you OK with this being committed to newforms-admin (along
with some documentation), or do you want me to keep this in patch
form?

Changes in this version:

- Forms and ModelAdmin can now have Media descriptions in the same way
as widgets. This replaces the old 'js' argument on ModelAdmin, but
makes Admin media consistent with the rest of the descriptor scheme.

- Media definitions now have an 'extend' argument, which allows users
to customize which media is inherited

class Widget(Widget):
    class Media:
        extend = ('css',)
        css = ...
        js = ...

If extend is undefined, it defaults to True; extend=False means no
media is inherited; extend=(...) means all the media types named in
the tuple will be inherited,

- After a query in the last email, I've checked that the issue
described in #4398 is fixed, and it was. There is a regression test
that covers this case.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to