Commit 3fbebf10 authored by Ysabella Panghulan's avatar Ysabella Panghulan

added Author class in models.py

parent bd63e459
from django.db import models
# Create your models here.
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.TextField(max_length = 700)
\ No newline at end of file
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