Browse Source

Fix redirection bug introduced in ffc66164

Baptiste Jonglez 10 years ago
parent
commit
5887d45868
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panorama/views.py

+ 1 - 1
panorama/views.py

@@ -16,7 +16,7 @@ class PanoramaUpload(CreateView):
     template_name = "panorama/new.html"
 
     def get_success_url(self):
-        return reverse_lazy("panorama:gen_tiles", kwargs={"id": self.object.id})
+        return reverse_lazy("panorama:gen_tiles", kwargs={"pk": self.object.id})
 
 class PanoramaView(DetailView):
     model = Panorama