1👍
✅
You can work with .exclude(…)
[Django-doc], so:
Model.objects.exclude(value__in=list).delete()
Source:stackexchange.com
1👍
You can work with .exclude(…)
[Django-doc], so:
Model.objects.exclude(value__in=list).delete()