diff --git a/ckanext/scheming/templates/scheming/form_snippets/slug.html b/ckanext/scheming/templates/scheming/form_snippets/slug.html index 2428e10c..9ce55c42 100644 --- a/ckanext/scheming/templates/scheming/form_snippets/slug.html +++ b/ckanext/scheming/templates/scheming/form_snippets/slug.html @@ -1,6 +1,6 @@ {% import 'macros/form.html' as form %} -{% set read_endpoint = '.read' if h.ckan_version() > '2.9' else '_read' %} +{% set read_endpoint = '.read' if h.check_ckan_version(min_version="2.9") else '_read' %} {%- if entity_type == 'dataset' %} {%- set controller = 'package' -%}