From 2829ea268b9de07c60e49b4f2b7a04cffdba4665 Mon Sep 17 00:00:00 2001 From: Teemu-Kostamo Date: Sat, 20 Apr 2024 18:24:46 +0300 Subject: [PATCH] =?UTF-8?q?muokattu=20models=20db:t=C3=A4=20varten?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lainatehtailijat/lainatehdas/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lainatehtailijat/lainatehdas/models.py b/lainatehtailijat/lainatehdas/models.py index b23162c..664fcb4 100644 --- a/lainatehtailijat/lainatehdas/models.py +++ b/lainatehtailijat/lainatehdas/models.py @@ -23,7 +23,7 @@ class Item(models.Model): item_name = models.CharField(max_length= 200, verbose_name="Name") item_desc = models.CharField(max_length= 500, verbose_name="Description") item_type = models.CharField(max_length=4, choices=item_choices, verbose_name="Type") - item_avail = models.CharField(max_length=2, choices=item_avail_choices, default="Va") + item_avail = models.CharField(max_length=2, choices=item_avail_choices) item_img = models.ImageField(upload_to='media/', default='media/placeholder.jpg') def __str__(self) -> str: return self.item_name