Hi all,I'm writing some tests #18586) for defer() and only() and there appears to be a bug when it comes to chaining these two in a single query.If you look at the docs (https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.only), it says this:# Final result is that everything except "headline" is deferred. Entry.objects.only("headline", "body").defer("body") # Final result loads headline and body immediately (only() replaces any # existing set of fields).Entry.objects.defer("body").only("headline", "body")However, when I test the last example "body" is still deferred after only() has been applied to it. In a situation where there are only these two fields in a model there should be no deferred field.
Is there any reason for this or does this need reporting as a bug. If so, what's the procedure for this?