aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyblackbird_cc/resources/views.py')
-rw-r--r--pyblackbird_cc/resources/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyblackbird_cc/resources/views.py b/pyblackbird_cc/resources/views.py
index 1b3312e..3bf3d22 100644
--- a/pyblackbird_cc/resources/views.py
+++ b/pyblackbird_cc/resources/views.py
@@ -292,6 +292,7 @@ def resource_detail(request, resource_id):
"card_description": resource_obj.card_description,
"resource_type": resource_obj.resource_type.name,
"main_resource_category": resource_obj.main_resource_category.name,
+ "main_resource_category_colour_css_class": resource_obj.main_resource_category.colour_css_class,
"additional_resource_category": (
resource_obj.subcategories.name if resource_obj.subcategories else None
),