[Fixed]-Return user id django

1👍

If you want to filter for users who are ‘handling leads’, you can do the following:

handling_leads = User.objects.filter(handling_leads__isnull=False)

Here’s a link to the documentation: https://docs.djangoproject.com/en/1.10/ref/models/querysets/#std:fieldlookup-isnull

Leave a comment