GeeWee / django-auto-prefetching

Automatic prefetching for Django
MIT License
231 stars 18 forks source link

Runtime error thrown if you forget to add many_true to a Serializer that needs it. #1

Open GeeWee opened 5 years ago

GeeWee commented 5 years ago

If you forget to add many=True to a serializer that has the reverse side of the ForeignKey we calculate the wrong prefetch_related fields and we get an error. We can't catch this error early because it's only thrown when the queryset is evaluated