Hack: fix naming bug in the "see" view

This commit is contained in:
Martin Pépin 2018-01-05 11:10:06 +01:00
parent 1bc0766774
commit ec955edb33

View file

@ -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())