Commit acb385bb authored by Ilham Maulana's avatar Ilham Maulana 💻

fix: allow null for book category many to many

parent 95afa028
......@@ -21,7 +21,7 @@ class Book(models.Model):
isbn = models.CharField(max_length=15, default="xxxxxxxxx-x")
description = models.CharField(max_length=255, blank=True, null=True)
cover_image = models.ImageField(upload_to="uploads", blank=True, null=True)
category = models.ManyToManyField(Category)
category = models.ManyToManyField(Category, blank=True, null=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment