Hi Guys,

In semi-response to wonderfull things like Upcoming changes to the Django
admin :)
How about having something similar as the js tuple for css styles ?

A usecase could be the admin fields for a model, there u can declare
something like:

fields = (
            (None, {
                'fields': ('name',),
            }),
            ("Slot 1", {
                'description': 'Slot 1 Content',
                'classes': 'wide extrapretty imgfoo',
                'fields': ('foo','bar',),
            }),
            ("Slot 2", {
                'description': 'Slot 2 Content',
                'classes': 'wide extrapretty imgbacon',
                'fields': ('bacon','spam','eggs',),
            }),
)

As with js u can add some javascript to fields of your choosing, an added
option
css would let u add a file with the 2 extra .imgfoo {} and .imgbacon {} css
classes.

But maybe also other things like adding a border or different bg color to
that one
special field in your model :-)

respect and regards,
Bas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to