Re: Custom Widget for admin application

2008-12-05 Thread Ricardo Bánffy
But what if I have a ForeignKey or a ManyToManyField in my model? On Fri, Dec 5, 2008 at 12:58 PM, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote: > Pass a grouped list to choices: > > ['group1', [(1, 'item 1'), (2, 'item 2'), ...], ...] --~--~-~--~~~---~--~~ You

Re: Custom Widget for admin application

2008-12-05 Thread Michel Thadeu Sabchuk
Hi Ricardo, > 1) Is there a sane way to make a custom widget that extends Select and > that has its options grouped by in tags according to some > criteria? Pass a grouped list to choices: ['group1', [(1, 'item 1'), (2, 'item 2'), ...], ...] > 2) How one does make the built-in admin app to us