.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{% extends 'atlas/base.html' %}
|
{% extends 'atlas/base.html' %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<a href="{% url 'atlas:collection_create' %}">Create collection</a>
|
||||||
<ul>
|
<ul>
|
||||||
{% for collection in collections %}
|
{% for collection in collections %}
|
||||||
<li><a href='{{collection.get_absolute_url}}'>{{collection.name}}</a></li>
|
<li><a href='{{collection.get_absolute_url}}'>{{collection.name}}</a></li>
|
||||||
|
|||||||
@@ -57,6 +57,15 @@ class RapidTable(tables.Table):
|
|||||||
"created_date", "open_access", "author")
|
"created_date", "open_access", "author")
|
||||||
sequence = ("view", "images", "exams")
|
sequence = ("view", "images", "exams")
|
||||||
|
|
||||||
|
def __init__(self, data=None, *args, **kwargs):
|
||||||
|
super().__init__(
|
||||||
|
data.prefetch_related(
|
||||||
|
"abnormality", "region", "examination", "laterality"
|
||||||
|
),
|
||||||
|
*args,
|
||||||
|
**kwargs,
|
||||||
|
)
|
||||||
|
|
||||||
class RapidUserAnswerTable(tables.Table):
|
class RapidUserAnswerTable(tables.Table):
|
||||||
select = tables.CheckBoxColumn(accessor=("pk"))
|
select = tables.CheckBoxColumn(accessor=("pk"))
|
||||||
delete = tables.LinkColumn(
|
delete = tables.LinkColumn(
|
||||||
|
|||||||
Reference in New Issue
Block a user