Hack: fix naming bug in the "see" view
This commit is contained in:
parent
1bc0766774
commit
ec955edb33
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue