I got it....many thanks Javier for your patience and your help.I put formfield_for_foreignkey method everywhere and now it's super fast. I'm glad you help me find the solution. Again thanks a lot. You made my day :-)
Regards, VB 2012/3/14 Javier Guerra Giraldez <jav...@guerrag.com> > On Wed, Mar 14, 2012 at 7:55 AM, Phanounou <virginia.bel...@gmail.com> > wrote: > > This is what is taking the most of the time. the gattering of the list of > > TObjectAttribute, 3 or 4 times each at a time because TmyObject has 3-4 > > attributes value. Because I called it as an admin.StackedInline object in > > the admin page. > > > > I don't know how to resolve this issue. > > find where is it loading the list of TmyObject objects (or rather, a > queryset of them) and add select_related() to it. quite likely, it's > on formfield_for_foreignkey() or a similar method. > > -- > Javier > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.