From 2cb87ebb90aaab11066d2eb9422a7da73410cc0a Mon Sep 17 00:00:00 2001 From: d0c Date: Fri, 17 Feb 2023 14:39:53 +0100 Subject: [PATCH] str --- suitablephones/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/suitablephones/models.py b/suitablephones/models.py index 965f844..db0d388 100644 --- a/suitablephones/models.py +++ b/suitablephones/models.py @@ -20,7 +20,7 @@ class Camera(models.Model): info = models.CharField(max_length=100, null=True) def __str__(self): - return f" {self.flash} - {str(self.megapixel)} - {self.info}" + return f"{self.flash} - {str(self.megapixel)} - {self.info}" class Screen(models.Model): size = models.CharField(max_length=500, null=True) @@ -31,7 +31,7 @@ class Screen(models.Model): technology = models.CharField(max_length=100) def __str__(self): - return f"{self.size_in} - {self.density} - {self.technology}" + return f"{str(self.size_in)} - {str(self.density)} - {str(self.technology)}" class Device(models.Model): #architecture = models.JSONField(default=dict)