Skip to content

Commit

Permalink
muokattu models db:tä varten
Browse files Browse the repository at this point in the history
  • Loading branch information
Teemu-Kostamo committed Apr 20, 2024
1 parent 7f71405 commit 2829ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lainatehtailijat/lainatehdas/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2829ea2

Please sign in to comment.