Fix dashboard name lookup
This commit is contained in:
@@ -64,7 +64,11 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<br>
|
<br>
|
||||||
<span class="text-dark fw-bold">
|
<span class="text-dark fw-bold">
|
||||||
{{ record.equipment_code|default:record.name }}
|
{% if record.equipment_code %}
|
||||||
|
{{ record.equipment_code }}
|
||||||
|
{% else %}
|
||||||
|
{{ record.name }}
|
||||||
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||||||
SECRET_KEY = "django-insecure-z(p$%wh6x^_9!1cgt%!s$w8k39(fox-^!iujxai42_wncja4%s"
|
SECRET_KEY = "django-insecure-z(p$%wh6x^_9!1cgt%!s$w8k39(fox-^!iujxai42_wncja4%s"
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = False
|
||||||
|
|
||||||
ALLOWED_HOSTS = [
|
ALLOWED_HOSTS = [
|
||||||
"192.168.100.142",
|
"192.168.100.142",
|
||||||
|
|||||||
Reference in New Issue
Block a user