Closed rwillmer closed 4 years ago
The code is trying to cast (num_deleted, num_per_type) from the result of a filter().delete() operation.
Sounds like you're using a Django < 1.9. The return value was changed in Django 1.9: https://docs.djangoproject.com/en/1.10/ref/models/querysets/#django.db.models.query.QuerySet.delete . At this point, I'm not excited about maintaining support for Django 1.8 and below -- but I'd welcome a pull request if you'd like to add support without reducing performance on Django 1.9+.