diff --git a/ram/portal/templates/base.html b/ram/portal/templates/base.html
index c16101b..97126fc 100644
--- a/ram/portal/templates/base.html
+++ b/ram/portal/templates/base.html
@@ -151,29 +151,27 @@
- -
-
-
-
- -
-
-
+
-
+ Roster
-
Consists
+ -
+
+
+
{% show_bookshelf_menu %}
{% show_flatpages_menu %}
diff --git a/ram/portal/templates/cards.html b/ram/portal/templates/cards.html
index 4a0a790..cef0722 100644
--- a/ram/portal/templates/cards.html
+++ b/ram/portal/templates/cards.html
@@ -7,7 +7,7 @@
{% block cards %}
{% for d in data %}
{% if d.type == "rolling_stock" %}
- {% include "cards/rolling_stock.html" %}
+ {% include "cards/roster.html" %}
{% elif d.type == "company" %}
{% include "cards/company.html" %}
{% elif d.type == "rolling_stock_type" %}
diff --git a/ram/portal/templates/cards/rolling_stock.html b/ram/portal/templates/cards/roster.html
similarity index 100%
rename from ram/portal/templates/cards/rolling_stock.html
rename to ram/portal/templates/cards/roster.html
diff --git a/ram/portal/templates/rollingstock.html b/ram/portal/templates/rollingstock.html
index a08ab12..47e6345 100644
--- a/ram/portal/templates/rollingstock.html
+++ b/ram/portal/templates/rollingstock.html
@@ -358,7 +358,7 @@
{{ rolling_stock.notes | safe }}
-
+
{% for d in consists %}
{% include "cards/consist.html" %}
{% endfor %}
diff --git a/ram/portal/views.py b/ram/portal/views.py
index 0ccbd9e..b2595e1 100644
--- a/ram/portal/views.py
+++ b/ram/portal/views.py
@@ -78,7 +78,7 @@ class GetData(View):
class GetRoster(GetData):
- title = "Rolling stock"
+ title = "Roster"
item_type = "rolling_stock"
queryset = RollingStock.objects.order_by(*order_by_fields())
@@ -234,6 +234,9 @@ class GetRosterFiltered(View):
elif _filter == "scale":
title = get_object_or_404(Scale, slug__iexact=search)
query = Q(scale__slug__iexact=search)
+ query_2nd = Q(
+ consist_item__rolling_stock__scale__slug__iexact=search
+ )
elif _filter == "tag":
title = get_object_or_404(Tag, slug__iexact=search)
query = Q(tags__slug__iexact=search)
diff --git a/ram/ram/__init__.py b/ram/ram/__init__.py
index b6ec74c..17e4b5b 100644
--- a/ram/ram/__init__.py
+++ b/ram/ram/__init__.py
@@ -1,4 +1,4 @@
from ram.utils import git_suffix
-__version__ = "0.8.0"
+__version__ = "0.9.0"
__version__ += git_suffix(__file__)
diff --git a/ram/ram/urls.py b/ram/ram/urls.py
index e58db03..3759359 100644
--- a/ram/ram/urls.py
+++ b/ram/ram/urls.py
@@ -60,3 +60,7 @@ if settings.DEBUG:
name="openapi-schema",
),
]
+ if apps.is_installed("debug_toolbar"):
+ urlpatterns += [
+ path("__debug__/", include("debug_toolbar.urls")),
+ ]