Fix dashboard name lookup

This commit is contained in:
2026-09-21 16:07:16 +03:00
parent 58a32b7a16
commit f7e641ff9a
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -64,7 +64,11 @@
{% endif %}
<br>
<span class="text-dark fw-bold">
{{ record.equipment_code|default:record.name }}
{% if record.equipment_code %}
{{ record.equipment_code }}
{% else %}
{{ record.name }}
{% endif %}
</span>
</li>
{% empty %}
+1 -1
View File
@@ -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"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = [
"192.168.100.142",