diff options
-rw-r--r-- | packages/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py index 263165fd..2f614e34 100644 --- a/packages/views.py +++ b/packages/views.py @@ -84,7 +84,8 @@ def update(request): def details(request, name='', repo='', arch=''): if all([name, repo, arch]): try: - pkg = Package.objects.get(pkgname=name, + pkg = Package.objects.select_related( + 'arch', 'repo', 'packager').get(pkgname=name, repo__name__iexact=repo, arch__name=arch) return direct_to_template(request, 'packages/details.html', {'pkg': pkg, }) |