from django.db import models
from .item_post import ItemPost


class BookList(models.Model):
    # post + booknumber => primarykey로 쓰인다

    post = models.ForeignKey(
            "ItemPost",
            )

    booknumber = models.IntegerField(
            )

    bookname = models.CharField(
            max_length=200,
            )

    bookprice = models.CharField(
            max_length=200,
            )

    is_soldout = models.BooleanField(
            default=False,
            )

    def __str__(self):
        return self.bookname

@@ -401,24 +401,109 @@
          )%0A%0A
+    price_undefined = models.BooleanField(%0A            default=False,%0A            )%0A%0A
     is_soldo

update : insert price_undefined field in book_list model when client select price undefined checkbox price field is null