From 8054a37c0de5c29e0533356e6311dec5c423648a Mon Sep 17 00:00:00 2001 From: d0c Date: Mon, 16 Jan 2023 17:47:07 +0100 Subject: [PATCH] added version field --- suitablephones/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/suitablephones/models.py b/suitablephones/models.py index f6960e4..622dadb 100644 --- a/suitablephones/models.py +++ b/suitablephones/models.py @@ -1,3 +1,4 @@ +from django.contrib.postgres.fields import ArrayField from django.db import models # Create your models here. @@ -22,8 +23,6 @@ class Camera(models.Model): def __str__(self): return f"Camera: {self.megapixel} - {self.flash}" -#Devices.object.filter(flash=Camera.FLASEHS.LED) - class Device(models.Model): #battery = @@ -58,7 +57,7 @@ class Device(models.Model): type = models.CharField(max_length=100) vendor = models.CharField(max_length=100) vendor_short = models.CharField(max_length=100) - #versions = + versions = ArrayField(models.FloatField()) wifi = models.CharField(max_length=100) def __str__(self):