created and added the Author model

parent ce613782
from django.db import models
# Create your models here.
#Author
#first_name; last_name; age; nationality; bio
class Author(models.Model):
first_name = models.CharField(max_length = 50)
last_name = models.CharField(max_length = 50)
age = models.IntegerField(default = 0)
nationality = models.CharField(max_length = 50)
bio = models.CharField(max_length = 700)
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