Hi Ricardo, > 1) Is there a sane way to make a custom widget that extends Select and > that has its options grouped by in <optgroup> 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 use it? Extend the ModelAdmin and, in the __init__, change the choices of the proper field. > 3) Once decided I will do my own widgets, where is the "right" place > to put them? In a widgets.py file within the applciation? This way you didn´t need to use custom fields, but I use to put my custom widgets in the module project.utils.forms. Hope I could help you ;) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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-users?hl=en -~----------~----~----~----~------~----~------~--~---