From c33f87fcf14f47cdb8e8d74ab61b14aead172007 Mon Sep 17 00:00:00 2001 From: Johan Lindqvist Date: Tue, 31 Dec 2019 17:06:27 +0200 Subject: [PATCH] Refs #3 - ApartmentSensorValue string representation update --- backend/core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/core/models.py b/backend/core/models.py index 890f2c1..f99cfec 100644 --- a/backend/core/models.py +++ b/backend/core/models.py @@ -64,7 +64,7 @@ class ApartmentSensorValue(models.Model): updated_at = models.DateTimeField(auto_now=True) def __str__(self): - return f'Sensor Value for {self.apartment_sensor.apartment} {self.attribute} {self.value}' + return f'{self.attribute.description} value for {self.apartment_sensor}: {self.value}' class Sensor(models.Model):