Setting up pyenv and show default value on confirm add (#7)

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
This commit is contained in:
Thu Trang Pham
2021-02-09 17:03:18 -08:00
committed by GitHub
parent 591aa48ba0
commit 209de62c9d
17 changed files with 219 additions and 23 deletions
@@ -0,0 +1,18 @@
# Generated by Django 3.1.6 on 2021-02-10 00:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('market', '0003_auto_20201108_1717'),
]
operations = [
migrations.AddField(
model_name='inventory',
name='notes',
field=models.TextField(blank=True, default='This is the default', null=True),
),
]
+1
View File
@@ -32,3 +32,4 @@ class Inventory(models.Model):
)
item = models.ForeignKey(to=Item, on_delete=models.CASCADE)
quantity = models.PositiveIntegerField(default=0, null=True, blank=True)
notes = models.TextField(default="This is the default", null=True, blank=True)