From a26ac1fd31da3012be2a86df6541311960bfaea6 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 12 Jan 2023 11:22:14 +0000 Subject: [PATCH] Hard code schema version to 0.2 as currently library only supports this --- cove_ofds/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cove_ofds/views.py b/cove_ofds/views.py index 9aace57..11f50c4 100644 --- a/cove_ofds/views.py +++ b/cove_ofds/views.py @@ -142,6 +142,10 @@ def explore_ofds(request, pk): for task in PROCESS_TASKS: context.update(task.get_context()) + # Currently hard coded because the library only supports this version, + # but in future this should come from one of the process tasks + context["schema_version_used"] = "0.2" + template = "cove_ofds/explore.html" return render(request, template, context)