Re: Tweak admin widget - FilteredSelectMultiple

2020-01-04 Thread Mike Dewhirst
On 5/01/2020 11:42 am, Mike Dewhirst wrote: On 4/01/2020 9:03 pm, Integr@te System wrote: Hi Mike, As we look at selected_choice result from iterating v over value (line 428), option_value base on choice(line 438). so we can limit input parameter of value variable from this def().

Re: Tweak admin widget - FilteredSelectMultiple

2020-01-04 Thread Mike Dewhirst
On 4/01/2020 9:03 pm, Integr@te System wrote: Hi Mike, As we look at selected_choice result from iterating v over value (line 428), option_value base on choice(line 438). so we can limit input parameter of value variable from this def(). selected_choices appear in the selected box on screen

Re: Tweak admin widget - FilteredSelectMultiple

2020-01-04 Thread Integr@te System
Hi Mike, As we look at selected_choice result from iterating v over value (line 428), option_value base on choice(line 438). so we can limit input parameter of value variable from this def(). Hope if heplful. On Sat, Jan 4, 2020, 11:00 Mike Dewhirst wrote: > In the Admin where user group

Tweak admin widget - FilteredSelectMultiple

2020-01-03 Thread Mike Dewhirst
In the Admin where user group membership is shown and groups can be selected from choices derived from auth_groups, I want to control the available choices. It seems the place to do so might be in admin/widgets.py in the AutocompleteMixin.optgroups() method a few lines in where it says ...