diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-10-05 12:07:10 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-10-05 12:07:10 +0000 |
| commit | 2f0be0faae2f10b6ae8c049e8469ab8404f9c7bf (patch) | |
| tree | 89ca54c5998048663a7b553ace9833ce6cf9c9cc /tests/regressiontests/initial_sql_regress/sql/simple.sql | |
| parent | 40904d0404a6d6a34b6f35e7c33be702326e042a (diff) | |
Fixed #8660 -- Small database query optimisation in User.get_profile.
When calling User.get_profile(), we now tell the profile object about the
related User object right away. This can save a database lookup later if
something in the user profile object wants to refer to the user object.
Patch from Mike Malone.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/initial_sql_regress/sql/simple.sql')
0 files changed, 0 insertions, 0 deletions
