[Answered ]-Django: foreign key (many-to-many) return empty queryset despite not being empty

1👍

There are Admins, and your Account exists, but none of the Admins are linked to that specific Account. The widget shows all Admins.

You thus can link Admins to an account by selecting these in the widget. In that case account.admins.all() will return the Admin objects selected for that account.

Leave a comment