from django.db import models

# Create your models here.
class Category(models.Model):
    category_name = models.CharField(max_length=100)
    def __str__(self):
        return self.category_name

class Book(models.Model):
    category = models.ForeignKey(Category,on_delete=models.CASCADE,null=True, blank=True)
    name = models.CharField(max_length = 100)
    author = models.CharField(max_length = 100)
    published_on = models.DateField()
b5355587d3e7dc769b3ad8d3d1a88df00ebe0724
<mask token>


class Category(models.Model):
    <mask token>
    <mask token>


class Book(models.Model):
    category = models.ForeignKey(Category, on_delete=models.CASCADE, null=
        True, blank=True)
    name = models.CharField(max_length=100)
    author = models.CharField(max_length=100)
    published_on = models.DateField()

<mask token>


class Category(models.Model):
    <mask token>

    def __str__(self):
        return self.category_name


class Book(models.Model):
    category = models.ForeignKey(Category, on_delete=models.CASCADE, null=
        True, blank=True)
    name = models.CharField(max_length=100)
    author = models.CharField(max_length=100)
    published_on = models.DateField()

<mask token>


class Category(models.Model):
    category_name = models.CharField(max_length=100)

    def __str__(self):
        return self.category_name


class Book(models.Model):
    category = models.ForeignKey(Category, on_delete=models.CASCADE, null=
        True, blank=True)
    name = models.CharField(max_length=100)
    author = models.CharField(max_length=100)
    published_on = models.DateField()

from django.db import models


class Category(models.Model):
    category_name = models.CharField(max_length=100)

    def __str__(self):
        return self.category_name


class Book(models.Model):
    category = models.ForeignKey(Category, on_delete=models.CASCADE, null=
        True, blank=True)
    name = models.CharField(max_length=100)
    author = models.CharField(max_length=100)
    published_on = models.DateField()

from django.db import models

# Create your models here.
class Category(models.Model):
    category_name = models.CharField(max_length=100)
    def __str__(self):
        return self.category_name

class Book(models.Model):
    category = models.ForeignKey(Category,on_delete=models.CASCADE,null=True, blank=True)
    name = models.CharField(max_length = 100)
    author = models.CharField(max_length = 100)
    published_on = models.DateField()