django models not equal exclude filter

Django != not equal exclude

not equal

1
2
3
user1_progress = models.EvaluationMaterial.objects.filter(
evaluation_task_id=evaluation_task_id).exclude(
user1='-').values('user1').annotate(alloced=Count('user1'))

Django: NOT IN -> exclude(a__in=b_list)

NOT IN

1
2
table1.objects.exclude(id__in =
table2.objects.filter(your_condition).values_list('id', flat=True))

(Django in / not in query)[https://stackoverflow.com/questions/4523282/django-in-not-in-query]