views:

304

answers:

2

Is there a way to make a fieldset collapsible, but start expanded? When you add collapse to the fieldset classes, it gets the functionality but starts collapsed. I've taken a look at the JS that shows/hides the fieldset content, but it doesn't look like there's anything in there to do what I'd like it to, so I'm assuming I'll have to roll my own. Just wanted to check before I went through that effort.

+1  A: 

django-grappelli provides this as one of the features. Here's the wiki page about that feature (with screenshots).

T. Stone
Thanks, I'll probably end up going with that. We'd used grappelli on a couple other projects, and I knew it could do this, just didn't think of it at the time.
Alex Jillard
A: 

c http://djangosnippets.org/snippets/2200

c0se