Gentoo Archives: gentoo-commits

From: Slava Bacherikov <slava@××××××××××××××.ua>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/apps/packages/
Date: Wed, 20 Jun 2012 23:24:24
Message-Id: 1340192695.997f0bca9b029d7a5d2c58327a5a3846a254fcd3.bacher09@gentoo
commit:     997f0bca9b029d7a5d2c58327a5a3846a254fcd3
Author:     Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Wed Jun 20 11:44:55 2012 +0000
Commit:     Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Wed Jun 20 11:44:55 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=997f0bca

Select related for virtual packages

---
 gpackages/apps/packages/admin.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gpackages/apps/packages/admin.py b/gpackages/apps/packages/admin.py
index 5b5c209..b66ef73 100644
--- a/gpackages/apps/packages/admin.py
+++ b/gpackages/apps/packages/admin.py
@@ -43,6 +43,7 @@ class EbuildAdmin(admin.ModelAdmin):
 class VirtualPackageAdmin(admin.ModelAdmin):
     list_display = ('__unicode__',)
     search_fields = ('name','category__category')
+    list_select_related = True
 
 class PackageAdmin(EbuildsCountAdmin, admin.ModelAdmin):
     list_display = ('__unicode__', 'ebuilds_count')