Commit bc0d1add authored by Eury See's avatar Eury See

Populated models using the Admin Panel.

parent 15fc192c
......@@ -8,7 +8,7 @@ class Author(models.Model):
bio = models.TextField(max_length = 700)
def __str__(self):
return self.first_name
return self.last_name
class Books(models.Model):
title = models.CharField(max_length = 100)
......@@ -16,7 +16,7 @@ class Books(models.Model):
publisher = models.CharField(max_length = 100)
year_published = models.IntegerField()
ISBN = models.IntegerField()
blurb = models.CharField(max_length = 200)
blurb = models.TextField(max_length = 200)
def __str__(self):
return self.title
\ 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