Commit 9c88de86 authored by Tanya's avatar Tanya

Edited models.py and populated models of bookshelf

parent a31f81e3
......@@ -9,7 +9,7 @@ class Author(models.Model):
bio = models.TextField(max_length=700,default="")
def __str__(self):
return '{}'.format(self.title)
return '{}'.format(self.first_name,self.last_name)
class Book(models.Model):
title = models.CharField(max_length=100,default="")
......@@ -20,4 +20,4 @@ class Book(models.Model):
blurb = models.TextField(validators=[MinLengthValidator(100)],max_length=200,default="")
def __str__(self):
return '{}'.format(self.body)
\ No newline at end of file
return '{}'.format(self.title,self.author)
\ 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