File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,24 @@ not decoupled from this pattern by any abstraction layer. If you would like
230230to implement your own alternate, please see the ``social_django.models `` and
231231``social_django_mongoengine.models `` modules for guidance.
232232
233+ Active users filtering
234+ ----------------------
235+
236+ By default the model allows only active users to authenticate. This can be
237+ customised by ``SOCIAL_AUTH_ACTIVE_USERS_FILTER `` setting which is passed as
238+ kwargs to the query set filter method.
239+
240+ .. code-block :: python
241+ :caption: Disable filtering for active users
242+
243+ SOCIAL_AUTH_ACTIVE_USERS_FILTER = {}
244+
245+ .. code- block:: python
246+ :caption: Use custom field to filter active users
247+
248+ SOCIAL_AUTH_ACTIVE_USERS_FILTER = {" deleted_account" : False }
249+
250+
233251
234252JSON field support
235253------------------
You can’t perform that action at this time.
0 commit comments