skip to Main Content

Can't filter empty fields in Django – Postgresql

I want to get a list of users that have provided an email in my database using Django. This is my query: list(App.objects.exclude(admins__email__exact='').values('admins__email')) which strangely excludes everything and gives: [] although when I run: list(App.objects.all().values('admins__email')) i can see a list…

VIEW QUESTION
Back To Top
Search