Browse Source

Fix creation of pano and refpoints, broken because of a prefix in field names (fixes 6d5d1494a3)

Baptiste Jonglez 8 years ago
parent
commit
3a1fae38d2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panorama/views.py

+ 2 - 0
panorama/views.py

@@ -31,6 +31,7 @@ class PanoramaUpload(CelutzLoginMixin, CreateView):
     model = Panorama
     fields = ('name', 'image', 'loop', 'latitude', 'longitude', 'altitude')
     template_name = "panorama/new.html"
+    prefix = 'newpano'
 
     def get_success_url(self):
         return reverse_lazy("panorama:gen_tiles", kwargs={"pk": self.object.id})
@@ -92,6 +93,7 @@ class CreateReferencePoint(CelutzLoginMixin, CreateView):
     model = ReferencePoint
     fields = ('name', 'latitude', 'longitude', 'altitude')
     template_name = 'panorama/new-refpoint.html'
+    prefix = 'newrefpoint'
 
     def get_success_url(self):
         return reverse_lazy("panorama:main")