From 3350966bb3d4b3f0b9ac94f8c035ab612fd7385c Mon Sep 17 00:00:00 2001 From: Thomas Rusiecki Date: Wed, 13 Nov 2024 21:14:23 -0300 Subject: [PATCH] fixed user_properties list not working --- device/templates/details.html | 2 +- device/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/device/templates/details.html b/device/templates/details.html index 3669679..34f9edd 100644 --- a/device/templates/details.html +++ b/device/templates/details.html @@ -126,7 +126,7 @@ - {% for a in object.get_user_annotations %} + {% for a in object.get_user_properties %} {{ a.key }} {{ a.value }} diff --git a/device/views.py b/device/views.py index 45ff289..80c2e46 100644 --- a/device/views.py +++ b/device/views.py @@ -12,7 +12,7 @@ from django.views.generic.edit import ( ) from django.views.generic.base import TemplateView from dashboard.mixins import DashboardView, Http403 -from evidence.models import UserProperty, SystemProperty +from evidence.models import UserProperty, SystemProperty, Property from lot.models import LotTag from device.models import Device from device.forms import DeviceFormSet