From: Jeremy Kerr Date: Wed, 24 Sep 2008 23:17:00 +0000 (+1000) Subject: [views] Don't use bundle owner for current user X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=f2ad003c12123f91c0d1d3cb21d4c2a3bfdfbadd;p=patchwork [views] Don't use bundle owner for current user This made the top auth area show the bundle owner's details, not the bundle owner's. Bundle owner can still be accessed through bundle.owner in the template. Signed-off-by: Jeremy Kerr --- diff --git a/apps/patchwork/views/bundle.py b/apps/patchwork/views/bundle.py index 5f990c4..d8e4e2f 100644 --- a/apps/patchwork/views/bundle.py +++ b/apps/patchwork/views/bundle.py @@ -173,6 +173,6 @@ def public(request, username, bundlename): filter_settings = filter_settings, patches = bundle.patches.all()) - context.update({'bundle': bundle, - 'user': user}); + context['bundle'] = bundle + return render_to_response('patchwork/bundle-public.html', context)