From: <al...@us...> - 2010-04-14 23:03:10
|
Revision: 14221 http://translate.svn.sourceforge.net/translate/?rev=14221&view=rev Author: alaaosh Date: 2010-04-14 23:03:04 +0000 (Wed, 14 Apr 2010) Log Message: ----------- lead users when loading suggestions, reduces query count Modified Paths: -------------- src/trunk/Pootle/local_apps/pootle_store/models.py Modified: src/trunk/Pootle/local_apps/pootle_store/models.py =================================================================== --- src/trunk/Pootle/local_apps/pootle_store/models.py 2010-04-14 14:37:56 UTC (rev 14220) +++ src/trunk/Pootle/local_apps/pootle_store/models.py 2010-04-14 23:03:04 UTC (rev 14221) @@ -353,7 +353,7 @@ ##################### Suggestions ################################# def get_suggestions(self): - return self.suggestion_set.all() + return self.suggestion_set.select_related('user').all() def get_suggestion(self, item, translation): translation = multistring(translation) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |