Parcourir la source

Fix generation of references URL in template

Baptiste Jonglez il y a 9 ans
Parent
commit
2e53eec4d8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      panorama/templates/panorama/view.html

+ 1 - 1
panorama/templates/panorama/view.html

@@ -33,7 +33,7 @@
 
       ref_points = new Array();
       {% for ref in panorama.references_data %}
-      ref_points["{{ ref.name }}"] = {url: "/api/v1/references/{{ ref.pk }}/", x: {{ ref.x }}, y: {{ ref.y }}, cap: {{ ref.cap }}, ele: {{ ref.elevation }}};
+      ref_points["{{ ref.name }}"] = {url: "/api/v1/references/{{ ref.id }}/", x: {{ ref.x }}, y: {{ ref.y }}, cap: {{ ref.cap }}, ele: {{ ref.elevation }}};
       {% endfor %}
     </script>
     <link type="image/x-icon" rel="shortcut icon" href="{% static "panorama/img/tsf.png" %}"/>