Added 15 object instances of each model through the Admin page

parent 23870ee0
...@@ -8,7 +8,7 @@ class Author(models.Model): ...@@ -8,7 +8,7 @@ class Author(models.Model):
bio = models.TextField(max_length=700) bio = models.TextField(max_length=700)
def __str__(self): def __str__(self):
return '{}, {}'.format(self.first_name, self.last_name) return '{} {}'.format(self.first_name, self.last_name)
class Book(models.Model): class Book(models.Model):
title = models.CharField(max_length=180) title = models.CharField(max_length=180)
......
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