Commit c064da33 authored by xaingling's avatar xaingling

hot fix

parent 6b88b2bc
......@@ -92,7 +92,7 @@ class SensorAdmin(admin.ModelAdmin):
objs = list(instrument_on_platform_qs)
for obj in objs:
obj.url_edit_link = make_edit_link(obj)
obj.url_sensor_change = make_edit_link(obj.sensor)
obj.url_instrument_change = make_edit_link(obj.instrument)
sensor_on_instrument_add_link = make_add_link(SensorOnInstrument)
extra_context = {
......
......@@ -12,7 +12,7 @@
<tbody>
{% for c in extra_content %}
<tr>
<td><a href="{{ c.url_sensor_change }}" target="_blank">{{ c.instrument.identifier }}</a></td>
<td><a href="{{ c.url_instrument_change }}" target="_blank">{{ c.instrument.identifier }}</a></td>
<td>{{ c.start_time }}</td>
<td>{{ c.end_time }}</td>
<td><a href="{{ c.url_edit_link }}" target="_blank">edit</a></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment