From ec955edb33ca62ac1e429633109c6aa6e3f25b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Fri, 5 Jan 2018 11:10:06 +0100 Subject: [PATCH] Hack: fix naming bug in the "see" view --- partitions/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/partitions/views.py b/partitions/views.py index 3dfdbc8..d1ad407 100644 --- a/partitions/views.py +++ b/partitions/views.py @@ -71,8 +71,8 @@ def see(request, nom, auteur, partition_id): response["Content-Length"] = myfile.size return response else: - partitions = get_object_or_404(PartitionSet, nom=nom, auteur=auteur) - part = partitions.partition_set.all() + p = get_object_or_404(PartitionSet, nom=nom, auteur=auteur) + part = p.partition_set.all() return render(request, 'partitions/listepart.html', locals())