Re: RelatedObject Cache

2009-03-17 Thread Andrew Fong
And there it is! Thanks Alex! On Mar 17, 2:18 pm, Alex Gaynor wrote: > On Tue, Mar 17, 2009 at 5:08 PM, Andrew Fong wrote: > > > Hello all, > > > Quick question. Given these models ... > > > class A(models.Model): pass > > > class B(models.Model): > >  model_a = models.ForeignKey(A) > > > ... g

Re: RelatedObject Cache

2009-03-17 Thread Alex Gaynor
On Tue, Mar 17, 2009 at 5:08 PM, Andrew Fong wrote: > > Hello all, > > Quick question. Given these models ... > > class A(models.Model): pass > > class B(models.Model): > model_a = models.ForeignKey(A) > > ... getting the model_a attribute on an instance of B will result in > that related object

RelatedObject Cache

2009-03-17 Thread Andrew Fong
Hello all, Quick question. Given these models ... class A(models.Model): pass class B(models.Model): model_a = models.ForeignKey(A) ... getting the model_a attribute on an instance of B will result in that related object being cached. So the question: given an instance of B, how do I know wh