django-autocomplete-light icon indicating copy to clipboard operation
django-autocomplete-light copied to clipboard

How to add an option for select all?

Open Teut2711 opened this issue 4 years ago • 2 comments

I am making an interface so that the admin can send emails. Now he can send it to one, 2 or more users in the database but sometimes it may be required to mail everyone. Entering each user's email in such case is impractical since there are 2 million records. What I want is to allow "All" as a field. For sending mail to everyone in database.

image

Teut2711 avatar Feb 08 '21 08:02 Teut2711

You can add this option manually, override the get_results method and add your option there. Then, handle it in your form field and widget too.

jpic avatar Feb 19 '21 12:02 jpic

I am making an interface so that the admin can send emails. Now he can send it to one, 2 or more users in the database but sometimes it may be required to mail everyone. Entering each user's email in such case is impractical since there are 2 million records. What I want is to allow "All" as a field. For sending mail to everyone in database.

image

Hi I need this feature too. Can you help me?

saeedhmt avatar May 26 '21 05:05 saeedhmt