Use is_seen=False instead of is_seen__in=[False] On Mon, Feb 19, 2024, 3:00 PM Armaan Alam <armaanala...@gmail.com> wrote:
> queryset = Notification.objects.filter(is_seen__in=[False]).count() > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAO5R%2BOsiVoOyr_cfwEUgt4PyjcK4qF6VOTVwJyAo692auyhayw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAO5R%2BOsiVoOyr_cfwEUgt4PyjcK4qF6VOTVwJyAo692auyhayw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJNd6v_Rs8gOyabAvQFuL3RQ1UrUhLTYHVA4fA%2B%3D%3DfcWiFXSQQ%40mail.gmail.com.