My model has another primary key name, not id. That's why I get the error django.core.exceptions.FieldError: Cannot resolve keyword 'id' into field. The name of primary key is hard coded in tasks.py: for obj in model.objects.filter(id__in=id_list):
My model has another primary key name, not id.
That's why I get the error
django.core.exceptions.FieldError: Cannot resolve keyword 'id' into field.
The name of primary key is hard coded in tasks.py:
for obj in model.objects.filter(id__in=id_list):