Commit daf77fa9 by muhammad-ammar Committed by Muhammad Ammar

optimize queries for dashboard courses

parent 8535cacf
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<a target="_blank" href="{{ course_run.preview_url }}">{{ course_run.preview_url }}</a> <a target="_blank" href="{{ course_run.preview_url }}">{{ course_run.preview_url }}</a>
</td> </td>
<td> <td>
{% if course_run.course.organizations.first %}{{ course_run.course.organizations.first.key }}{% endif %} {{ course_run.course.organization_name }}
</td> </td>
<td> <td>
{% if course_run.course_run_state.preview_accepted %} {% if course_run.course_run_state.preview_accepted %}
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
{{ course_run.number }} {{ course_run.number }}
</td> </td>
<td> <td>
{% if course_run.course.organizations.first %}{{ course_run.course.organizations.first.key }}{% endif %} {{ course_run.course.organization_name }}
</td> </td>
<td> <td>
{{ course_run.start|date:"Y-m-d" }} {{ course_run.start|date:"Y-m-d" }}
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
{{ course_run.number }} {{ course_run.number }}
</td> </td>
<td> <td>
{% if course_run.course.organizations.first %}{{ course_run.course.organizations.first.key }}{% endif %} {{ course_run.course.organization_name }}
</td> </td>
<td> <td>
{{ course_run.start|date:"Y-m-d" }} {{ course_run.start|date:"Y-m-d" }}
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<a href="{{ run_page_url }}" id="course-title">{{ course_run.title }}</a> <a href="{{ run_page_url }}" id="course-title">{{ course_run.title }}</a>
</td> </td>
<td> <td>
{% if course_run.course.organizations.first %}{{ course_run.course.organizations.first.key }}{% endif %} {{ course_run.course.organization_name }}
</td> </td>
<td id="course-start"> <td id="course-start">
{{ course_run.start|date:"Y-m-d" }} {{ course_run.start|date:"Y-m-d" }}
......
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