Skip to content

Commit

Permalink
Refs #3 - ApartmentSensorValue string representation update
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-fvh committed Dec 31, 2019
1 parent 0e7d683 commit c33f87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c33f87f

Please sign in to comment.