﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31433	Model.objects.create() doesn't utilize caching for prefetches defined on the ObjectManager.	Nathan Yan	nobody	"In this example:


{{{
class Foo(models.Model):

    objects = FooManager()

class FooManager(models.Manager):

    def get_queryset(self):
        return (...).prefetch_related(""bars"")


fooA = Foo.objects.get(...)
fooA.bars # already prefetched + cached for later
fooB = Foo.objects.create()
fooB.bars # not prefetched
fooB.bars # queries again because not included in prefetch cache
}}}

I would expect fooA and fooB's caches to behave similarly since they're sourced from the same ObjectManager. If it's not a bug, is there a way to specify the same `prefetch_related` caching functionality for created objects?"	Bug	closed	Database layer (models, ORM)	3.0	Normal	invalid	prefetch cache		Unreviewed	0	0	0	0	0	0
