Bas van Oostveen
unread,Feb 27, 2007, 7:09:39 PM2/27/07Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-d...@googlegroups.com
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