Browse Source

Fix generation of references URL in template

Baptiste Jonglez 9 years ago
parent
commit
2e53eec4d8
1 changed files with 1 additions and 1 deletions
  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" %}"/>