diff --git a/templates/service_catalog/common/instance-support-details.html b/templates/service_catalog/common/instance-support-details.html index 668cedafa..84880b85b 100644 --- a/templates/service_catalog/common/instance-support-details.html +++ b/templates/service_catalog/common/instance-support-details.html @@ -69,13 +69,13 @@ {% endif %} - {% if support.state == "OPENED" %} + {% if support.get_state_display == "OPENED" %} Close {% endif %} - {% if support.state == "CLOSED" %} + {% if support.get_state_display == "CLOSED" %} Re-open diff --git a/templates/service_catalog/instance_detail.html b/templates/service_catalog/instance_detail.html index 5878efb74..c62db8b46 100644 --- a/templates/service_catalog/instance_detail.html +++ b/templates/service_catalog/instance_detail.html @@ -115,7 +115,7 @@

{{ object.name }}

{% if operations_table %} - {% if object.state == "AVAILABLE" %} + {% if object.get_state_display == "AVAILABLE" %} {% render_table operations_table %} {% else %}

Instance not available

diff --git a/templates/service_catalog/mails/request_state_update.html b/templates/service_catalog/mails/request_state_update.html index 7ee895818..8c215e1d4 100644 --- a/templates/service_catalog/mails/request_state_update.html +++ b/templates/service_catalog/mails/request_state_update.html @@ -29,7 +29,7 @@ - {{ request.state }} + {{ request.get_state_display }} {% if user_applied_state and user_applied_state is not None %} @@ -124,7 +124,7 @@ {% endif %} - {% if request.state == 'SUBMITTED' %} + {% if request.get_state_display == 'SUBMITTED' %} {% include 'service_catalog/mails/utils/delimiter.html' %} {% include 'service_catalog/mails/utils/header.html' with title="Survey" %} - {% if request.state == 'COMPLETE' %} + {% if request.get_state_display == 'COMPLETE' %} {% include 'service_catalog/mails/utils/delimiter.html' %} {% include 'service_catalog/mails/utils/header.html' with title="Specs" %}